Follow-up Comment #9, bug #21649 (project wesnoth):
> Thanks. I was looking through the code from pango_layout_line_get_extents()
onwards, but I can't seem to work out how the problem exposes itself - not
that I was ever good at reading plain C.
The function 'pango_win32_font_map_load_font' does a map lookuo for a string
like string 'dejavu sans,japanse,monotype .... ' whihc cannot be found, thus.
pango_win32_font_map_load_font, pango_font_map_load_font and
pango_context_load_font all return NULL. so
pango_layout_get_empty_extents_at_index calculates 0,0 as the size of that
line.
> If you know what the issue is, is it worth reporting it to the pango team?
Hmm yes i think it makes sense to report to the pango team.
> Another thought: why is this only an issue on Windows and OSX, but not
Linux?
I don't know exactly why this doesn't happen on linux, i thought that the
reason why windows behaves differently from linux here is that the windows
specific function pango_win32_font_map_load_font is involved (on linux it
mostlikeley calls a different function). Don't know about osx though.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21649>
_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs