template <typename BuilderImpl>

class WireTableBaseBuilder

Defined at line 1134 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_types.h

Public Methods

::fuchsia_fonts::wire::TypefaceQuery Build ()

Build and return the table. The builder should not be used after this.

bool has_family ()
void clear_family ()

Clears the family field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & family (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fuchsia_fonts::wire::FamilyName>> elem)

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

bool has_style ()
void clear_style ()

Clears the style field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

::fuchsia_fonts::wire::Style2 & style ()

Style properties of the desired typeface.

BuilderImpl & style (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fuchsia_fonts::wire::Style2>> elem)

Style properties of the desired typeface.

bool has_languages ()
void clear_languages ()

Clears the languages field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & languages (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView< ::fuchsia_intl::wire::LocaleId>>> elem)

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_code_points ()
void clear_code_points ()

Clears the code_points field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & code_points (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::VectorView<uint32_t>>> elem)

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_fallback_family ()
void clear_fallback_family ()

Clears the fallback_family field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & fallback_family (::fuchsia_fonts::wire::GenericFontFamily elem)

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_postscript_name ()
void clear_postscript_name ()

Clears the postscript_name field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & postscript_name (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::StringView>> elem)

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_full_name ()
void clear_full_name ()

Clears the full_name field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & full_name (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fidl::StringView>> elem)

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.

Protected Methods

void WireTableBaseBuilder< ::fuchsia_fonts::wire::TypefaceQuery, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_fonts::wire::TypefaceQuery>> && frame)

Records