"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gb.gtk/src/gfont.cpp" between
gambas-3.16.2.tar.bz2 and gambas-3.16.3.tar.bz2

About: Gambas is a graphical development environment based on a Basic interpreter with object extensions, a bit like Visual Basic (requires Qt).

gfont.cpp  (gambas-3.16.2.tar.bz2):gfont.cpp  (gambas-3.16.3.tar.bz2)
skipping to change at line 780 skipping to change at line 780
if (text && len) if (text && len)
{ {
ly = pango_layout_new(ct); ly = pango_layout_new(ct);
if (sw > 0) if (sw > 0)
{ {
pango_layout_set_wrap(ly, PANGO_WRAP_WORD_CHAR); pango_layout_set_wrap(ly, PANGO_WRAP_WORD_CHAR);
pango_layout_set_width(ly, (int)ceilf(sw * PANGO_SCALE)); pango_layout_set_width(ly, (int)ceilf(sw * PANGO_SCALE));
} }
html = gt_html_to_pango_string(text, len, false); html = gt_html_to_pango_string(text, len, false);
pango_layout_set_markup(ly, html, -1); pango_layout_set_markup(ly, html, -1);
gt_set_layout_from_font(ly, this); gt_add_layout_from_font(ly, this);
pango_layout_get_extents(ly, &ink_rect, &rect); pango_layout_get_extents(ly, &ink_rect, &rect);
g_free(html); g_free(html);
g_object_unref(ly); g_object_unref(ly);
rect.width = Max(rect.width, ink_rect.width); rect.width = Max(rect.width, ink_rect.width);
rect.height = Max(rect.height, ink_rect.height); rect.height = Max(rect.height, ink_rect.height);
} }
if (w) *w = (float)rect.width / PANGO_SCALE; if (w) *w = (float)rect.width / PANGO_SCALE;
if (h) if (h)
{ {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)