pub type ULFontLoaderGetFallbackFontForCharacters = Option<unsafe extern "C" fn(characters: ULString, weight: c_int, italic: bool) -> ULString>;
Expand description

Fallback font family name that can render the specified characters. This is mainly used to support CJK (Chinese, Japanese, Korean) text display.

@param characters One or more UTF-16 characters. This is almost always a single character.

@param weight Font weight.

@param italic Whether or not italic is requested.

@return Should return a font family name that can render the text. The returned ULString instance will be consumed (ulDestroyString will be called on it).

Aliased Type§

enum ULFontLoaderGetFallbackFontForCharacters {
    None,
    Some(unsafe extern "C" fn(_: *mut C_String, _: i32, _: bool) -> *mut C_String),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut C_String, _: i32, _: bool) -> *mut C_String)

Some value of type T.