ultimatepp/uppdev/MetricsIssue/main.cpp
cxl 757eca6493 .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@2394 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2010-05-14 13:07:56 +00:00

27 lines
557 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct Test : TopWindow {
virtual void Paint(Draw& w) {
w.DrawRect(GetSize(), White());
w.DrawText(100, 100, WString(0x9500, 1));
}
};
GUI_APP_MAIN
{
/* Font f = Arial(40);
DDUMP(f[0xbd]);
DDUMP(f['X']);
WString x("销");
DDUMP(FormatIntHex(x[0]));
for(int i = 1; i < Font::GetFaceCount(); i++)
if(Font(i, 10).IsNormal(0x9500))
DDUMP(Font::GetFaceName(i));
*/
DDUMP(GetGlyphInfo(Font().FaceName("PMingLiU").Height(20), 0x9500).IsNormal());
Test().Run();
}