public override int GetWidth(int char1)
{
int c = (int)char1;
if (!cidDirect)
c = uniCid.Lookup(char1);
int v;
if (vertical)
v = vMetrics[c];
else
v = hMetrics[c];
if (v > 0)
return v;
else
return 1000;
}
CJKFont::GetWidth ( string text ) : int |