Function CTFontDescriptorCreateCopyWithSymbolicTraits

Source
pub unsafe extern "C-unwind" fn CTFontDescriptorCreateCopyWithSymbolicTraits(
    original: &CTFontDescriptor,
    sym_trait_value: CTFontSymbolicTraits,
    sym_trait_mask: CTFontSymbolicTraits,
) -> Option<CFRetained<CTFontDescriptor>>
Available on crate features CTFontDescriptor and CTFontTraits only.
Expand description

Returns a new font descriptor based on the original descriptor having the specified symbolic traits.

Parameter original: The original font descriptor reference.

Parameter symTraitValue: The value of the symbolic traits. This bitfield is used to indicate the desired value for the traits specified by the symTraitMask parameter. Used in conjunction, they can allow for trait removal as well as addition.

Parameter symTraitMask: The mask bits of the symbolic traits. This bitfield is used to indicate the traits that should be changed.

Returns: Returns a new font descriptor reference in the same family with the given symbolic traits, or NULL if none found in the system.