private void Initialize() { // Initialize FreeType // Note: we initialize FreeType for every font instance in order to avoid having a single // global manager that would create a lot of issues regarding creation and destruction order. _library = new SharpFont.Library(); // Load the new font face from the specified data _face = new SharpFont.Face(_library, _fontData, 0); // Load the stroker that will be used to outline the font _stroker = new SharpFont.Stroker(_library); // Select the unicode character map _face.SelectCharmap(SharpFont.Encoding.Unicode); // Store the font family name _familyName = _face.FamilyName; }