SparrowSharp.Fonts.BitmapChar.AddKerning C# (CSharp) Method

AddKerning() public method

Adds kerning information relative to a specific other character ID.
public AddKerning ( float amount, int charId ) : void
amount float
charId int
return void
        public void AddKerning(float amount, int charId)
        {
            // TODO: sparrow lazy loads the kernings dictionary, revisit to check that we really want this
            if (_kernings == null)
            {
                _kernings = new Dictionary<int, float>();
            }

            _kernings.Add(charId, amount);
        }