To install, visit admin/settings/dfont. Basically, you have to upload fonts to Drupal's "files" directory and turn on the dfont filter.
Note: You have to provide *both* .ttf and .eot files (different extensions but having the same name) for each TrueType font so the text can be viewed across multiple browsers.
To use, you must first enable the Dynamic Font Filter (admin/settings/filters). You can use the filter in a number of ways. For examples:
+ [dfont=GentR102|16pt] text to be rendered nicely. [/dfont] + [dfont=df2|16pt] text to be rendered nicely. [/dfont] + [dfont=df2|120%] text to be rendered nicely. [/dfont]
In these example, GentR102 is the name of Gentium regular font, which also has a "short name": df2. See admin/settings/dfont for font names and their corresponding "short names". You can use either the full name or short name to specify the desirable font.
Note: The filter only styles one paragraph at a time; you must filter each paragraph separately. If you enclose the filter around multiple paragraphs, only the first paragraph is styled. A paragraph can have several lines separated by at most one return. If you separate two sentences with 2 or more returns, you have more than one paragraphs.
Where to get fonts?
You must provide both .ttf and .eot files for each fonts. There are many good free fonts, but due to potential (GPL) licensing issues I don't want to include them in the module. You can download them for free; e.g. here.
You can use this tool to convert those TrueType (ttf) fonts to OpenType (eot) fonts.
- Maintenance status: Unknown
- Development status: Under active development
- Module categories: Content Display
- Reported installs: 39 sites currently report using this module. View usage statistics.
- Downloads: 3,294
- Last modified: November 27, 2014
- Stable releases receive coverage from the Drupal Security Team.
Look for the shield icon below.