diff mde/font/font.d @ 98:49e7cfed4b34

All types of Option have been converted to use ValueContent classes, and their values can be displayed.
author Diggory Hardy <diggory.hardy@gmail.com>
date Wed, 12 Nov 2008 13:18:51 +0000
parents 30470bc19ca4
children 0ea4a3e651ae
line wrap: on
line diff
--- a/mde/font/font.d	Mon Nov 10 16:44:44 2008 +0000
+++ b/mde/font/font.d	Wed Nov 12 13:18:51 2008 +0000
@@ -71,19 +71,19 @@
             
             // Set LCD filtering method if LCD rendering is enabled.
             const RMF = FT_LOAD_TARGET_LCD | FT_LOAD_TARGET_LCD_V;
-            if (fontOpts.renderMode & RMF &&
-                FT_Library_SetLcdFilter(library, cast(FT_LcdFilter)fontOpts.lcdFilter)) {
+            if (fontOpts.renderMode() & RMF &&
+                FT_Library_SetLcdFilter(library, cast(FT_LcdFilter)fontOpts.lcdFilter())) {
                 /* An error occurred, presumably because LCD rendering support
                 * is not compiled into the library. */
                 logger.warn ("Bad/unsupported LCD filter option; disabling LCD font rendering.");
                 logger.warn ("Your FreeType 2 library may be compiled without support for LCD/sub-pixel rendering.");
                 
                 // Reset the default filter (in case an invalid value was set in config files).
-                fontOpts.set!(int) ("lcdFilter", FT_LcdFilter.FT_LCD_FILTER_DEFAULT);
+                fontOpts.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. */
-                fontOpts.set!(int) ("renderMode", FT_LOAD_TARGET_NORMAL);
+                fontOpts.renderMode = FT_LOAD_TARGET_NORMAL;
             }
             
             /* Load font settings