Mercurial > projects > mde
comparison mde/font/font.d @ 67:108d123238c0
Changes to work with tango r3700 (post 0.99.6).
Changes to logging.
Replaced many uses of PathView with FilePath.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 03 Jul 2008 12:40:31 +0100 |
parents | cc3763817b8a |
children | 7fc0a8295c83 |
comparison
equal
deleted
inserted
replaced
65:891211f034f2 | 67:108d123238c0 |
---|---|
65 throw new fontException ("error initialising the FreeType library"); | 65 throw new fontException ("error initialising the FreeType library"); |
66 | 66 |
67 // Check version | 67 // Check version |
68 FT_Int maj, min, patch; | 68 FT_Int maj, min, patch; |
69 FT_Library_Version (library, &maj, &min, &patch); | 69 FT_Library_Version (library, &maj, &min, &patch); |
70 if (maj != 2 || min != 3) { | 70 if (maj != 2 || min != 3) |
71 char[128] tmp; | 71 logger.warn ("Using an untested FreeType version: {}.{}.{}", maj, min, patch); |
72 logger.warn (logger.format (tmp, "Using an untested FreeType version: {}.{}.{}", maj, min, patch)); | |
73 } | |
74 | 72 |
75 // Set LCD filtering method if LCD rendering is enabled. | 73 // Set LCD filtering method if LCD rendering is enabled. |
76 const RMF = FT_LOAD_TARGET_LCD | FT_LOAD_TARGET_LCD_V; | 74 const RMF = FT_LOAD_TARGET_LCD | FT_LOAD_TARGET_LCD_V; |
77 if (fontOpts.renderMode & RMF && | 75 if (fontOpts.renderMode & RMF && |
78 FT_Library_SetLcdFilter(library, cast(FT_LcdFilter)fontOpts.lcdFilter)) { | 76 FT_Library_SetLcdFilter(library, cast(FT_LcdFilter)fontOpts.lcdFilter)) { |