class TypefaceQuery

Defined at line 1358 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/natural_types.h

Parameters for looking up a typeface.

Public Methods

void TypefaceQuery ()

Defined at line 1364 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/natural_types.h

void TypefaceQuery (TypefaceQuery && )

Defined at line 1365 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/natural_types.h

void TypefaceQuery (Storage_ storage)
void TypefaceQuery (const TypefaceQuery & other)
TypefaceQuery & operator= (const TypefaceQuery & other)
bool operator== (const TypefaceQuery & other)
bool operator!= (const TypefaceQuery & other)
bool IsEmpty ()
const std::optional< ::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`.

::std::optional< ::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`.

TypefaceQuery & family (std::optional< ::fuchsia_fonts::FamilyName> value)

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`.

const std::optional< ::fuchsia_fonts::Style2> & style ()

Style properties of the desired typeface.

::std::optional< ::fuchsia_fonts::Style2> & style ()

Style properties of the desired typeface.

TypefaceQuery & style (std::optional< ::fuchsia_fonts::Style2> value)

Style properties of the desired typeface.

const std::optional< ::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`.

::std::optional< ::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`.

TypefaceQuery & languages (std::optional< ::std::vector< ::fuchsia_intl::LocaleId>> value)

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`.

const std::optional< ::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.

::std::optional< ::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.

TypefaceQuery & code_points (std::optional< ::std::vector<uint32_t>> value)

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.

const std::optional< ::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.

::std::optional< ::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.

TypefaceQuery & fallback_family (std::optional< ::fuchsia_fonts::GenericFontFamily> value)

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.

TypefaceQuery & operator= (TypefaceQuery && )

Defined at line 1366 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/natural_types.h

const std::optional< ::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.

::std::optional< ::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.

TypefaceQuery & postscript_name (std::optional< ::std::string> value)

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.

const std::optional< ::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.

::std::optional< ::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.

TypefaceQuery & full_name (std::optional< ::std::string> value)

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.

void TypefaceQuery (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits