Пример #1
0
 public nsFont(string name, uint8_t style, uint8_t systemFont, uint8_t variant, uint8_t decorations, uint16_t weight, int16_t stretch,
               nscoord size, float sizeAdjust = 0, string languageOverride = null)
 {
     this.name             = name;
     this.style            = style;
     this.systemFont       = systemFont;
     this.variant          = variant;
     this.decorations      = decorations;
     this.weight           = weight;
     this.stretch          = stretch;
     this.size             = size;
     this.sizeAdjust       = sizeAdjust;
     this.languageOverride = languageOverride;
 }
Пример #2
0
 internal nsFont(object name, int style, int systemFont, int variant, int decorations, int weight, int stretch,
                 nscoord size = default(nscoord), float sizeAdjust = 0, string languageOverride = null)
     : this(name.ToString(), (byte)style, (byte)systemFont, (byte)variant, (byte)decorations, (ushort)weight, (short)stretch, size, sizeAdjust, languageOverride)
 {
 }