pub fn make_typeface_request<'a>(
    width: impl Into<Option<Width>>,
    slant: impl Into<Option<Slant>>,
    weight: impl Into<Option<u16>>,
    languages: impl Into<Option<&'a [&'a str]>>,
    flags: TypefaceRequestFlags,
    fallback_family: impl Into<Option<GenericFontFamily>>,
) -> TypefaceRequest {
    TypefaceRequest {
        query: Some(TypefaceQuery {
            family: None,
            style: Some(Style2 { weight: weight.into(), width: width.into(), slant: slant.into() }),
            code_points: None,
            languages: languages
                .into()
                .map(|l| l.iter().map(|s| LocaleId { id: s.to_string() }).collect()),
            fallback_family: fallback_family.into(),
        }),
        flags: Some(flags),
        cache_miss_policy: None,
    }
}
/// Makes a `TypefaceRequest` with the given properties (and defaults for the rest).
Makes a `TypefaceRequest` with the given properties (and defaults for the rest).
Makes a ` TypefaceRequest ` with the given properties ( and defaults for the rest ) .
pub fn make_typeface_request<'a>(
    width: impl Into<Option<Width>>,
    slant: impl Into<Option<Slant>>,
    weight: impl Into<Option<u16>>,
    languages: impl Into<Option<&'a [&'a str]>>,
    flags: TypefaceRequestFlags,
    fallback_family: impl Into<Option<GenericFontFamily>>,
) -> TypefaceRequest {
    TypefaceRequest {
        query: Some(TypefaceQuery {
            family: None,
            style: Some(Style2 { weight: weight.into(), width: width.into(), slant: slant.into() }),
            code_points: None,
            languages: languages
                .into()
                .map(|l| l.iter().map(|s| LocaleId { id: s.to_string() }).collect()),
            fallback_family: fallback_family.into(),
        }),
        flags: Some(flags),
        cache_miss_policy: None,
    }
}
pub fn make_typeface_request < ' a > ( width : impl Into < Option < Width > > , slant : impl Into < Option < Slant > > , weight : impl Into < Option < u16 > > , languages : impl Into < Option < & ' a [ & ' a str ] > > , flags : TypefaceRequestFlags , fallback_family : impl Into < Option < GenericFontFamily > > , ) -> TypefaceRequest { TypefaceRequest { query : Some ( TypefaceQuery { family : None , style : Some ( Style2 { weight : weight . into ( ) , width : width . into ( ) , slant : slant . into ( ) } ) , code_points : None , languages : languages . into ( ) . map ( | l | l . iter ( ) . map ( | s | LocaleId { id : s . to_string ( ) } ) . collect ( ) ) , fallback_family : fallback_family . into ( ) , } ) , flags : Some ( flags ) , cache_miss_policy : None , } }
Makes a `TypefaceRequest` with the given properties (and defaults for the rest).
Makes a ` TypefaceRequest ` with the given properties ( and defaults for the rest ) .
width
impl Into<Option<Width>>
slant
impl Into<Option<Slant>>
weight
impl Into<Option<u16>>
languages
impl Into<Option<&'a [&'a str]>>
flags
TypefaceRequestFlags
fallback_family
impl Into<Option<GenericFontFamily>>
width
impl Into<Option<Width>>
slant
impl Into<Option<Slant>>
weight
impl Into<Option<u16>>
languages
impl Into<Option<&'a [&'a str]>>
flags
TypefaceRequestFlags
fallback_family
impl Into<Option<GenericFontFamily>>