class TypefaceQuery
Defined at line 975 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_types.h
Parameters for looking up a typeface.
Public Methods
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
::fidl::WireTableBuilder< ::fuchsia_fonts::wire::TypefaceQuery> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_fonts::wire::TypefaceQuery> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_fonts::wire::TypefaceQuery>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
void TypefaceQuery ()
Defined at line 977 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_types.h
void TypefaceQuery (const TypefaceQuery & other)
Defined at line 978 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_types.h
bool has_family ()
TypefaceQuery & operator= (const TypefaceQuery & other)
Defined at line 979 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_types.h
void TypefaceQuery (TypefaceQuery && other)
Defined at line 980 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_types.h
::fuchsia_fonts::wire::FamilyName & family ()
Desired font family name, e.g. "Roboto". Font family search is case-insensitive.
Note: In cases where the specified family doesn't exist, or the specified family doesn't
have a glyph for the requested `code_point`, a face from another family may be returned.
This behavior can be disabled using `TypefaceRequestFlags.EXACT_FAMILY`.
TypefaceQuery & operator= (TypefaceQuery && other)
Defined at line 981 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_types.h
::fuchsia_fonts::wire::Style2 & style ()
Style properties of the desired typeface.
bool has_style ()
::fidl::VectorView< ::fuchsia_intl::wire::LocaleId> & languages ()
Language tags in order of preference. This allows disambiguating code points that map
to different glyphs in different languages (e.g. CJK code points).
See `fuchsia.intl.LocaleId`.
bool has_languages ()
::fidl::VectorView<uint32_t> & code_points ()
Optional code points for which glyphs must be present in the returned face.
Callers that specify this field are expected to extract the character set from the result
and cache it in order to avoid calling the API more than necessary.
bool has_code_points ()
::fuchsia_fonts::wire::GenericFontFamily & fallback_family ()
A generic font family to fall back to if an exact match is unavailable or does not contain
the requested code point.
Every font family belongs to a generic family (configured in the font manifest). If a
particular font family doesn't contain a requested code point, the provider can search for
the code point in other font families _in the same generic family_ as a fallback.
Specifying `fallback_family` in a query allows the client to override the generic family
that would be used as a fallback.
bool has_fallback_family ()
::fidl::StringView & postscript_name ()
The exact Postscript name of the typeface to look up. This corresponds to name ID `6` in
the TrueType/OpenType `name` table.
All characters must be in the printable ASCII range (U+0021 to U+007E), and must not be
'[', ']', '(', ')', '{', '}', '
<
', '>', '/', or '%'.
If this field is specified, all the other query fields are ignored.
bool has_postscript_name ()
::fidl::StringView & full_name ()
The exact full name of the typeface to look up. This corresponds to name ID `4` in the
TrueType/OpenType `name` table.
If this field is specified, all the other query fields are ignored.
bool has_full_name ()
void ~TypefaceQuery ()
Defined at line 983 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_types.h
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder