rombust
12-18-2008, 04:16 PM
Just for interest, we can improve the fps of dicewar gui using the following code snippet
CL_FontDescription font_desc;
font_desc.set_typeface_name("Accidental Presidency");
font_desc.set_height(-21);
font_desc.set_weight(700);
CL_Font_Bitmap font_bitmap(gc, font_desc);
gui->set_named_font(font_bitmap, font_desc);
Add to the bottom of ClientGUI constructor (in client_gui.cpp)
You can check to see if it works by using this test instead.
CL_FontDescription font_desc;
font_desc.set_typeface_name("Tahoma");
font_desc.set_height(-21);
font_desc.set_weight(700);
CL_Font_Bitmap font_bitmap(gc, font_desc);
font_desc.set_typeface_name("Accidental Presidency");
gui->set_named_font(font_bitmap, font_desc);
There is no need to use it though :) - Only mentioned it, as I found it an interesting method of hacking fonts :whistling:
CL_FontDescription font_desc;
font_desc.set_typeface_name("Accidental Presidency");
font_desc.set_height(-21);
font_desc.set_weight(700);
CL_Font_Bitmap font_bitmap(gc, font_desc);
gui->set_named_font(font_bitmap, font_desc);
Add to the bottom of ClientGUI constructor (in client_gui.cpp)
You can check to see if it works by using this test instead.
CL_FontDescription font_desc;
font_desc.set_typeface_name("Tahoma");
font_desc.set_height(-21);
font_desc.set_weight(700);
CL_Font_Bitmap font_bitmap(gc, font_desc);
font_desc.set_typeface_name("Accidental Presidency");
gui->set_named_font(font_bitmap, font_desc);
There is no need to use it though :) - Only mentioned it, as I found it an interesting method of hacking fonts :whistling: