Subversion Repositories Kolibri OS

Rev

Rev 5024 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5024 Rev 5025
Line 174... Line 174...
174
        printf("an error occurred during FreeType initialization\n");
174
        printf("an error occurred during FreeType initialization\n");
175
        goto done;
175
        goto done;
176
    }
176
    }
177
 
177
 
Line 178... Line 178...
178
    err = FT_New_Face( library, "/kolibrios/Fonts/IstokWeb.ttf", 0, &face );
178
//    err = FT_New_Face( library, "/kolibrios/Fonts/IstokWeb.ttf", 0, &face );
179
//    err = FT_New_Face( library, "/kolibrios/Fonts/lucon.ttf", 0, &face );
179
//    err = FT_New_Face( library, "/kolibrios/Fonts/lucon.ttf", 0, &face );
-
 
180
 
-
 
181
    err = FT_New_Face( library, "/kolibrios/Fonts/DroidSansMono.ttf", 0, &face );
-
 
182
 
180
    if ( err == FT_Err_Unknown_File_Format )
183
    if ( err == FT_Err_Unknown_File_Format )
181
    {
184
    {
182
        printf("font format is unsupported\n");
185
        printf("font format is unsupported\n");
183
        goto done;
186
        goto done;
Line 231... Line 234...
231
 
234
 
Line 232... Line 235...
232
    memset(font, 0, sizeof(*font));
235
    memset(font, 0, sizeof(*font));
Line 233... Line 236...
233
 
236
 
234
    font->face = (xface == NULL) ? def_face : xface;
237
    font->face = (xface == NULL) ? def_face : xface;
Line 235... Line 238...
235
    font->height = size;
238
    font->height = size+1;
Line 236... Line 239...
236
 
239
 
237
    err = FT_Set_Pixel_Sizes( font->face, 0, size );
240
    err = FT_Set_Pixel_Sizes( font->face, 0, size );