Mercurial > projects > mde
diff 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 |
line wrap: on
line diff
--- a/mde/font/font.d Fri Jun 27 18:35:33 2008 +0100 +++ b/mde/font/font.d Sun Jun 29 11:55:55 2008 +0100 @@ -82,11 +82,11 @@ logger.warn ("Your FreeType 2 library may compiled without support for LCD/sub-pixel rendering."); // Reset the default filter (in case an invalid value was set in config files). - Options.setInt ("font", "lcdFilter", FT_LcdFilter.FT_LCD_FILTER_DEFAULT); + fontOpts.set!(int) ("lcdFilter", FT_LcdFilter.FT_LCD_FILTER_DEFAULT); /* If no support for LCD filtering, then LCD rendering only emulates NORMAL with 3 * times wider glyphs. So disable and save the extra work. */ - Options.setInt ("font", "renderMode", FT_LOAD_TARGET_NORMAL); + fontOpts.set!(int) ("renderMode", FT_LOAD_TARGET_NORMAL); } /* Load font settings