public void Load(UOFile file) { _file = file; _chars[0] = new UniChar(); for (int i = 33; i < 128; i++) { GetChar((char)i); } GetChar(' ').Width = GetChar('M').Width / 3; }
public BaseCharacter GetChar(char c) { int index = (c & 0xFFFFF) - 0x20; if (index < 0) { return(_null); } if (_chars[index] == null) { UniChar ch = LoadChar(index + 0x20); int height = ch.Height + ch.OffsetY; if (index < 128 && height > Height) { Height = height; } _chars[index] = ch; } return(_chars[index]); }