Exemple #1
0
        protected override UIntPtr CreateFont(string faceName, int size, int weight, font_style italic, font_decoration decoration, ref font_metrics fm)
        {
            var fontId     = new UIntPtr(++lastFontId);
            var fontHolder = FontHolder.Create(faceName, size, weight, italic, decoration, ref fm);

            fontCache.Add(fontId, fontHolder);
            return(fontId);
        }