Exemplo n.º 1
0
    public void AddKerning(int first, int second, int amount)
    {
        GlyphKerning item = new GlyphKerning {
            first  = first,
            second = second,
            amount = amount
        };

        this.kerning.Add(item);
    }
Exemplo n.º 2
0
    private void buildKerningMap()
    {
        Dictionary <int, GlyphKerningList> dictionary = this.kerningMap = new Dictionary <int, GlyphKerningList>();

        for (int i = 0; i < this.kerning.Count; i++)
        {
            GlyphKerning kerning = this.kerning[i];
            if (!dictionary.ContainsKey(kerning.first))
            {
                dictionary[kerning.first] = new GlyphKerningList();
            }
            dictionary[kerning.first].Add(kerning);
        }
    }