From 5cec55579d0128a678283c8aa67d8832f3425d2c Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 7 Feb 2009 13:49:13 +0000 Subject: [PATCH] FontInfo::HasChar in X11 git-svn-id: svn://ultimatepp.org/upp/trunk@842 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Draw/DrawTextXft.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uppsrc/Draw/DrawTextXft.cpp b/uppsrc/Draw/DrawTextXft.cpp index 33d8584dc..e931df7f0 100644 --- a/uppsrc/Draw/DrawTextXft.cpp +++ b/uppsrc/Draw/DrawTextXft.cpp @@ -88,6 +88,11 @@ static int sCheckComposed(const char *face) return n > 10; } +bool FontInfo::Data::HasChar(int ch) const +{ + return XftCharExists(Xdisplay, xftfont, ch); +} + void Draw::InitPlatformFonts() { for(int i = 0; i < __countof(basic_fonts); i++) {