Instance Method
setProperty(_:value:languageTag:) setProperty:value:languageTag: setProperty_value_languageTag_
Sets a font info value for a property name and language tag.
Declaration
func setProperty(_ name: GSPropertyName, value: String?, languageTag: String?)Declaration
- (void) setProperty:(GSPropertyName) name value:(NSString *) value languageTag:(NSString *) languageTag;Declaration
setProperty_value_languageTag_(name: GSPropertyName, value: str, languageTag: str)Parameters
nameThe font info property name.
valueThe value to set, or
nilto remove the value.languageTagThe language tag for localized properties, or
nilfor the default language.
Discussion
Passing nil for the value removes the matching value. Passing nil for the language tag uses the default language.
See Also
Properties
The font info properties stored in the font.
The number of font info properties.
The font info property at an index, or
nilwhen the index is out of range.The index of a font info property, or
nilwhen the property is not in the font.The font info property for a property name, or
nilwhen the font has no matching property.The localized font info value for a property name and language tag, or
nilwhen the font has no matching value.The default-language value for a font info property, or
nilwhen the font has no matching value.Sets the default-language value for a font info property.
Adds a font info property.
Adds a font info property without undo registration or change notifications.
Inserts a font info property at an index.
Removes a font info property.
Removes the font info property at an index.
The font info property names supported by the font.
The preferred localized family names.
See Also
Properties
The font info properties stored in the font.
The number of font info properties.
The font info property at an index, or
nilwhen the index is out of range.Returns the index of a font info property, or
NSNotFoundwhen the property is not in the font.The font info property for a property name, or
nilwhen the font has no matching property.The localized font info value for a property name and language tag, or
nilwhen the font has no matching value.The default-language value for a font info property, or
nilwhen the font has no matching value.Sets the default-language value for a font info property.
Adds a font info property.
Adds a font info property without undo registration or change notifications.
Inserts a font info property at an index.
Removes a font info property.
Removes the font info property at an index.
The font info property names supported by the font.
The preferred localized family names.