Example #1
0
 public GrayScaleLetterGlyph GetGrayScaleLetter(char ch)
 {
     lock (Glyphs)
     {
         if (!Glyphs.ContainsKey(ch))
         {
             Glyphs[ch] = GrayScaleLetterGlyph.CreateGlyph(Typeface, GlyphTypeface, EmSize, ch);
         }
         return(Glyphs[ch]);
     }
 }
Example #2
0
        public GrayScaleLetterGlyph GetGrayScaleLetter(char ch)
        {
            lock (this.Glyphs)
            {
                if (!this.Glyphs.ContainsKey(ch))
                {
                    this.Glyphs[ch] = GrayScaleLetterGlyph.CreateGlyph(this.Typeface, this.GlyphTypeface, this.EmSize, ch);
                }

                return(this.Glyphs[ch]);
            }
        }