protected override Boolean IsValid(CSSValue value) { FontSizeMode size; CSSCalcValue calc = value.AsCalc(); if (calc != null) { _size = new CalcFontSizeMode(calc); } else if (value is CSSIdentifierValue && _sizes.TryGetValue(((CSSIdentifierValue)value).Value, out size)) { _size = size; } else if (value != CSSValue.Inherit) { return(false); } return(true); }
public ESCPosDocumentFragment FontSizeMode(FontSizeMode mode) { return(Add(new FontSize(mode))); }
internal CSSFontSizeProperty() : base(PropertyNames.FontSize) { _size = _sizes["medium"]; _inherited = true; }
public FontSize(FontSizeMode mode) { _mode = mode; }