add an ifdeffed out font size workaround
This commit is contained in:
parent
ceaa322eef
commit
d792d26da8
|
|
@ -220,6 +220,12 @@ class GLFontInternal: public GLFont
|
||||||
// TODO fallback to fixed 8, courier new 8
|
// TODO fallback to fixed 8, courier new 8
|
||||||
|
|
||||||
layout = pango_layout_new(ft2_context);
|
layout = pango_layout_new(ft2_context);
|
||||||
|
|
||||||
|
#ifdef FONT_SIZE_WORKAROUND
|
||||||
|
pango_layout_set_width(layout, -1); // -1 no wrapping. All text on one line.
|
||||||
|
pango_layout_set_text(layout, "The quick brown fox jumped over the lazy sleeping dog's back then sat on a tack.", -1); // -1 null-terminated string.
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !PANGO_VERSION_CHECK(1,22,0)
|
#if !PANGO_VERSION_CHECK(1,22,0)
|
||||||
PangoLayoutIter *iter;
|
PangoLayoutIter *iter;
|
||||||
iter = pango_layout_get_iter(layout);
|
iter = pango_layout_get_iter(layout);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user