class TypefaceQuery
Defined at line 1262 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
Parameters for looking up a typeface.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
TypefaceQuery & set_family (::fuchsia::fonts::FamilyName _value)
TypefaceQuery & set_style (::fuchsia::fonts::Style2 _value)
TypefaceQuery & set_languages (::std::vector< ::fuchsia::intl::LocaleId> _value)
TypefaceQuery & set_code_points (::std::vector<uint32_t> _value)
TypefaceQuery & set_fallback_family (::fuchsia::fonts::GenericFontFamily _value)
TypefaceQuery & set_postscript_name (::std::string _value)
TypefaceQuery & set_full_name (::std::string _value)
void TypefaceQuery ()
void TypefaceQuery (TypefaceQuery && other)
void ~TypefaceQuery ()
TypefaceQuery & operator= (TypefaceQuery && other)
::std::unique_ptr<TypefaceQuery> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, TypefaceQuery * _value, size_t _offset)
zx_status_t Clone (TypefaceQuery * _result)
const ::fuchsia::fonts::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`.
Defined at line 1273 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
bool has_family ()
Defined at line 1277 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
::fuchsia::fonts::FamilyName * mutable_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`.
Defined at line 1286 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
void clear_family ()
Defined at line 1294 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
const ::fuchsia::fonts::Style2 & style ()
Style properties of the desired typeface.
Defined at line 1303 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
bool has_style ()
Defined at line 1307 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
::fuchsia::fonts::Style2 * mutable_style ()
Style properties of the desired typeface.
Defined at line 1312 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
void clear_style ()
Defined at line 1320 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
const ::std::vector< ::fuchsia::intl::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`.
Defined at line 1332 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
bool has_languages ()
Defined at line 1336 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
::std::vector< ::fuchsia::intl::LocaleId> * mutable_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`.
Defined at line 1344 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
void clear_languages ()
Defined at line 1352 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
const ::std::vector<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.
Defined at line 1364 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
bool has_code_points ()
Defined at line 1368 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
::std::vector<uint32_t> * mutable_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.
Defined at line 1376 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
void clear_code_points ()
Defined at line 1384 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
const ::fuchsia::fonts::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.
Defined at line 1401 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
bool has_fallback_family ()
Defined at line 1405 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
::fuchsia::fonts::GenericFontFamily * mutable_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.
Defined at line 1418 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
void clear_fallback_family ()
Defined at line 1426 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
const ::std::string & 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.
Defined at line 1441 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
bool has_postscript_name ()
Defined at line 1445 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
::std::string * mutable_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.
Defined at line 1456 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
void clear_postscript_name ()
Defined at line 1464 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
const ::std::string & 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.
Defined at line 1476 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
bool has_full_name ()
Defined at line 1480 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
::std::string * mutable_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.
Defined at line 1488 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
void clear_full_name ()
Defined at line 1496 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h