Mercurial > projects > mde
comparison mde/font/font.d @ 83:2813ac68576f
Start of creating a separate gui demo module and leaving mde.d for testing.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 30 Aug 2008 10:54:32 +0100 |
parents | 61ea26abe4dd |
children | e0f1ec7fe73a |
comparison
equal
deleted
inserted
replaced
80:ea58f277f487 | 83:2813ac68576f |
---|---|
66 throw new fontException ("error initialising the FreeType library"); | 66 throw new fontException ("error initialising the FreeType library"); |
67 | 67 |
68 // Check version | 68 // Check version |
69 FT_Int maj, min, patch; | 69 FT_Int maj, min, patch; |
70 FT_Library_Version (library, &maj, &min, &patch); | 70 FT_Library_Version (library, &maj, &min, &patch); |
71 if (maj != 2 || min != 3) | 71 if (maj != 2 || min != 3) { |
72 logger.warn ("Using an untested FreeType version: {}.{}.{}", maj, min, patch); | 72 logger.warn ("Using an untested FreeType version: {}.{}.{}", maj, min, patch); |
73 logger.info ("The only tested version of freetype is 2.3.5"); | |
74 } | |
73 | 75 |
74 // Set LCD filtering method if LCD rendering is enabled. | 76 // Set LCD filtering method if LCD rendering is enabled. |
75 const RMF = FT_LOAD_TARGET_LCD | FT_LOAD_TARGET_LCD_V; | 77 const RMF = FT_LOAD_TARGET_LCD | FT_LOAD_TARGET_LCD_V; |
76 if (fontOpts.renderMode & RMF && | 78 if (fontOpts.renderMode & RMF && |
77 FT_Library_SetLcdFilter(library, cast(FT_LcdFilter)fontOpts.lcdFilter)) { | 79 FT_Library_SetLcdFilter(library, cast(FT_LcdFilter)fontOpts.lcdFilter)) { |