Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A custom combo box to allow font selection from a preset list, whilst previewing the font
JavaScript CSS
Branch: master



As of commit 5350d8081d (9th Jul 2013) the font options are specified from the jquery plugin initialization


<div id="fontSelect" class="fontSelect">
    <div class="arrow-down"></div>

To turn the above into a font selector dropdown:

        'hide_fallbacks' : true,
        'initial' : 'Courier New,Courier New,Courier,monospace',
        'selected' : function(style) { alert(style); },
        'fonts' : [
            'Arial Black,Arial Black,Gadget,sans-serif',
            'Comic Sans MS,Comic Sans MS,cursive',
            'Courier New,Courier New,Courier,monospace',
            'Lucida Console,Monaco,monospace',
            'Lucida Sans Unicode,Lucida Grande,sans-serif',
            'Palatino Linotype,Book Antiqua,Palatino,serif',
            'Times New Roman,Times,serif',
            'Trebuchet MS,Helvetica,sans-serif',
            'Gill Sans,Geneva,sans-serif'

The hide_fallbacks option, when true, prevents the full font stack specified in the ul from being outputted. Instead only the first font name will be shown, the full font stack will be used specified in the css though. The function passed to selected will be called whenever a new font is selected, the first argument is the full font stack. The inital font is the font be initially shown in the dropdown.


A working demo of the files in the examples folder can be found at:

Something went wrong with that request. Please try again.