More TODOs.

This commit is contained in:
Pietro Gagliardi 2016-01-13 15:59:45 -05:00
parent 6394446461
commit 9442ebd53a
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ uiDrawTextFont *uiDrawLoadClosestFont(const uiDrawTextFontDescriptor *desc)
// we need a context for metrics to be correct
// the documentation suggests creating cairo_t-specific, GdkScreen-specific, or even GtkWidget-specific contexts, but we can't really do that because we want our uiDrawTextFonts to be context-independent
// so this will have to do
// TODO really see if there's a better way instead; what do GDK and GTK+ do internally?
// TODO really see if there's a better way instead; what do GDK and GTK+ do internally? gdk_pango_context_get()?
context = pango_font_map_create_context(pango_cairo_font_map_get_default());
font->f = pango_font_map_load_font(pango_cairo_font_map_get_default(), context, pdesc);
if (font->f == NULL) {