pub unsafe extern "C-unwind" fn CTFontCreateForStringWithLanguage(
current_font: &CTFont,
string: &CFString,
range: CFRange,
language: Option<&CFString>,
) -> CFRetained<CTFont>CTFont only.Expand description
Returns a new font reference that can best map the given string range based on the current font and language specified.
The current font itself can be returned if it covers the string provided.
Parameter currentFont: The current font that contains a valid cascade list.
Parameter string: A unicode string containing characters that cannot be encoded by the current font.
Parameter range: A CFRange specifying the range of the string that needs to be mapped.
Parameter language: Language identifier to select a font for a particular localization. If unspecified, the current system language is used. The format of the language identifier should conform to UTS #35.
Returns: This function returns the best substitute font that can encode the specified string range.
See also: CTFontCopyCharacterSet
See also: CTFontGetGlyphsForCharacters
See also: kCTFontCascadeListAttribute