Exemple #1
0
 public Font(string family, string name, SkiaSharp.SKTypefaceStyle style, float ascent)
 {
     Family = family;
     Name   = name;
     Style  = style;
     Ascent = ascent;
 }
Exemple #2
0
 public FontCharacter(List <ShapeGroup> shapes, char character, double size, double width, SkiaSharp.SKTypefaceStyle style, string fontFamily)
 {
     Shapes      = shapes;
     _character  = character;
     _size       = size;
     Width       = width;
     _style      = style;
     _fontFamily = fontFamily;
 }
Exemple #3
0
        internal static int HashFor(char character, string fontFamily, SkiaSharp.SKTypefaceStyle style)
        {
            var result = 0;

            result = 31 * result + character;
            result = 31 * result + fontFamily.GetHashCode();
            result = 31 * result + style.GetHashCode();
            return(result);
        }