All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
This is the final version of the jQuery fontSelect plugin. I've released a successor with more functionality and flexibility: Fontpicker jQuery Plugin Please check it out and migrate to this new one, with the benefit of continued support and updates.
- The list of Google Fonts wasn't complete: there were more Google Fonts than this plugin would show. This release fixes this: all available Google fonts (977 of them, at the time of writing) are now included.
- Minified css and js files are now included.
- Calling
trigger('setFont')
would automatically trigger thechange
event on the original input box. This isn't always expected/desired behavior. In this version, thechange
event is no longer triggered automatically whensetFont
is called. If you want to both set a font and trigger thechange
event, you now have to do it like so:$('#font1').trigger('setFont','Geo').trigger('change');
- Fixed issue #4: Searching for a non-existing font would load all fonts.
- List items can no longer wrap on whitespace (caused ugly line breaks in the dropdown).
- Upon opening the dropdown, the default selected font wasn't always shown correctly.
- List of default Google Fonts has been extended quite a bit.
- Added
Verdana
to default system fonts.
- Besides system fonts and Google fonts, you can now present local custom fonts as well.
In order to support most browsers, the local fonts must be available in .woff format.
You can use a tool like Transfonter to convert .ttf files
to .woff.
Use
options.localFonts = ['Action+Man','Bubble','Bauer']
, and make sure thatoptions.localFontsUrl
(default:/fonts/
) contains the path to the directory that holds your .woff fonts. See the demo page for an example.
- Fixed issue 3: Calling
setFont
would change the font family for all fontSelect components, instead of just one. Thanks Liam Donnelly for reporting.
- New option
placeholderSearch
, which defines the placeholder for the search box.
- Renamed
toggleDrop
totoggleDropdown
. - Font-search input no longer auto-focuses, as this is very annoying on touch screen devices: the virtual keyboard pops up whenever the dropdown menu is accessed.
- Font dropdowns are now more intelligently shown.