pub struct Request {
pub family: Option<String>,
pub weight: u32,
pub width: u32,
pub slant: Slant,
pub language: Option<Vec<String>>,
pub character: u32,
pub fallback_group: FallbackGroup,
pub flags: u32,
}
Expand description
Deprecated. See FaceRequest
.
Fields§
§family: Option<String>
Desired font family name, e.g. “Roboto”. Font family search is
case-insensitive. In case when there is no specified family or the
specified family doesn’t have glyph for the requested character
then
a font from another family may be returned. This behavior can be disabled
using REQUEST_FLAG_NO_FALLBACK
.
weight: u32
For example, 400 is normal, 700 is bold.
width: u32
Numeric values matching OS/2 & Windows Metrics usWidthClass table. https://www.microsoft.com/typography/otspec/os2.htm For example, 5 is normal.
slant: Slant
§language: Option<Vec<String>>
BCP47 language tags in order of preference. See https://tools.ietf.org/html/bcp47 .
character: u32
Codepoint for the character that must be present in the returned font or 0. Caller that specify this field are expected to extract character set from the result and cache it in order to avoid calling the API more than necessary.
fallback_group: FallbackGroup
Fallback group preference. Caller can leave this field set to NONE. In that case the font provider will use fallback group of the specified font family.
flags: u32
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Request, D> for Request
impl<D: ResourceDialect> Decode<Request, D> for Request
Source§impl<D: ResourceDialect, T0: Encode<Optional<BoundedString<128>>, D>, T1: Encode<u32, D>, T2: Encode<u32, D>, T3: Encode<Slant, D>, T4: Encode<Optional<Vector<BoundedString<35>, 8>>, D>, T5: Encode<u32, D>, T6: Encode<FallbackGroup, D>, T7: Encode<u32, D>> Encode<Request, D> for (T0, T1, T2, T3, T4, T5, T6, T7)
impl<D: ResourceDialect, T0: Encode<Optional<BoundedString<128>>, D>, T1: Encode<u32, D>, T2: Encode<u32, D>, T3: Encode<Slant, D>, T4: Encode<Optional<Vector<BoundedString<35>, 8>>, D>, T5: Encode<u32, D>, T6: Encode<FallbackGroup, D>, T7: Encode<u32, D>> Encode<Request, D> for (T0, T1, T2, T3, T4, T5, T6, T7)
Source§impl Ord for Request
impl Ord for Request
Source§impl PartialOrd for Request
impl PartialOrd for Request
Source§impl TypeMarker for Request
impl TypeMarker for Request
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Request
impl ValueTypeMarker for Request
impl Eq for Request
impl Persistable for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)