Ticket #182: fonts.patch

File fonts.patch, 1.4 KB (added by kiddo, 13 years ago)

patch to change the default font to Liberation Sans

  • navit/graphics/sdl/graphics_sdl.c

     
    206206
    207207/* graphics_font */
    208208static char *fontfamilies[]={
    209         "Liberation Mono",
     209        "Liberation Sans",
    210210        "Arial",
    211211        "DejaVu Sans",
    212212        "NcrBI4nh",
     
    239239//    gf->font = TTF_OpenFont("/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf", size);
    240240    if(flags)
    241241    {
    242         gf->font = TTF_OpenFont("/usr/share/fonts/truetype/LiberationMono-Bold.ttf", size);
     242        gf->font = TTF_OpenFont("/usr/share/fonts/truetype/LiberationSans-Bold.ttf", size);
    243243    }
    244244    else
    245245    {
    246         gf->font = TTF_OpenFont("/usr/share/fonts/truetype/LiberationMono-Regular.ttf", size);
     246        gf->font = TTF_OpenFont("/usr/share/fonts/truetype/LiberationSans-Regular.ttf", size);
    247247    }
    248248
    249249    if(gf->font == NULL)
  • navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c

     
    113113 * List of font families to use, in order of preference
    114114 */
    115115static char *fontfamilies[]={
    116         "Liberation Mono",
     116        "Liberation Sans",
    117117        "Arial",
    118118        "DejaVu Sans",
    119119        "NcrBI4nh",