comparison mde/font/font.d @ 64:cc3763817b8a

Overhauled Options so that it now uses templates and mixins for type-specific internals, and supported types can be adjusted via just one list.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 29 Jun 2008 11:55:55 +0100
parents 66d555da083e
children 108d123238c0
comparison
equal deleted inserted replaced
63:66d555da083e 64:cc3763817b8a
80 * is not compiled into the library. */ 80 * is not compiled into the library. */
81 logger.warn ("Bad/unsupported LCD filter option; disabling LCD font rendering."); 81 logger.warn ("Bad/unsupported LCD filter option; disabling LCD font rendering.");
82 logger.warn ("Your FreeType 2 library may compiled without support for LCD/sub-pixel rendering."); 82 logger.warn ("Your FreeType 2 library may compiled without support for LCD/sub-pixel rendering.");
83 83
84 // Reset the default filter (in case an invalid value was set in config files). 84 // Reset the default filter (in case an invalid value was set in config files).
85 Options.setInt ("font", "lcdFilter", FT_LcdFilter.FT_LCD_FILTER_DEFAULT); 85 fontOpts.set!(int) ("lcdFilter", FT_LcdFilter.FT_LCD_FILTER_DEFAULT);
86 86
87 /* If no support for LCD filtering, then LCD rendering only emulates NORMAL with 3 87 /* If no support for LCD filtering, then LCD rendering only emulates NORMAL with 3
88 * times wider glyphs. So disable and save the extra work. */ 88 * times wider glyphs. So disable and save the extra work. */
89 Options.setInt ("font", "renderMode", FT_LOAD_TARGET_NORMAL); 89 fontOpts.set!(int) ("renderMode", FT_LOAD_TARGET_NORMAL);
90 } 90 }
91 91
92 /* Load font settings 92 /* Load font settings
93 * 93 *
94 * Each mergetag section corresponds to a font; each is loaded whether used or not 94 * Each mergetag section corresponds to a font; each is loaded whether used or not