public TypographyFeatureInfo(CanvasTypographyFeatureName n) { name = n; if (IsNamedFeature(name)) { stringName = name.ToString(); } else { // // For custom font features, we can produce the OpenType feature tag // using the feature name. // uint id = (uint)(name); stringName = ((char)((id >> 24) & 0xFF)).ToString() + ((char)((id >> 16) & 0xFF)).ToString() + ((char)((id >> 8) & 0xFF)).ToString() + ((char)((id >> 0) & 0xFF)).ToString() + " (Custom)"; } }
public TypographyFeatureInfo(CanvasTypographyFeatureName n) { name = n; if (IsNamedFeature(name)) { stringName = name.ToString(); } else { // // For custom font features, we can produce the OpenType feature tag // using the feature name. // uint id = (uint)(name); stringName = ((char)((id >> 24) & 0xFF)).ToString() + ((char)((id >> 16) & 0xFF)).ToString() + ((char)((id >> 8) & 0xFF)).ToString() + ((char)((id >> 0) & 0xFF)).ToString() + " (Custom)"; } }