summaryrefslogtreecommitdiff
path: root/pango/pangocairo-private.h
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2006-03-01 00:26:07 +0000
committerTor Lillqvist <tml@src.gnome.org>2006-03-01 00:26:07 +0000
commit6a281140641872ed0c6d323b06304cca57cdc9e1 (patch)
tree5e081c28f7957d07c004956d653133f202918f71 /pango/pangocairo-private.h
parentc44718c43a88b0d2655cf98ffb580e9a801f6c45 (diff)
downloadpango-6a281140641872ed0c6d323b06304cca57cdc9e1.tar.gz
Check the font pointer being NULL to avoid crashes for at least one class
2006-03-01 Tor Lillqvist <tml@novell.com> * pango/pango-context.c (update_metrics_from_items): Check the font pointer being NULL to avoid crashes for at least one class of "bad" fonts (those without a Unicode cmap) on Win32. It would probably be better to prune out such fonts already in the enumeration phase. That would require opening (CreateFontIndirect) every font, though, to be able to check with GetFontData() whether there is a Unicode cmap. Don't know how much that would slow down the enumeration.
Diffstat (limited to 'pango/pangocairo-private.h')
0 files changed, 0 insertions, 0 deletions