public override int GetWidth(String text)
{
if (cjkMirror != null)
return cjkMirror.GetWidth(text);
else if (isType0) {
char[] chars = text.ToCharArray();
int len = chars.Length;
int total = 0;
for (int k = 0; k < len; ++k) {
int[] ws;
metrics.TryGetValue((int)chars[k], out ws);
if (ws != null)
total += ws[1];
}
return total;
}
else
return base.GetWidth(text);
}