template <typename BuilderImpl>

class WireTableBaseBuilder

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

Public Methods

::fuchsia_fonts::wire::Style2 Build ()

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

bool has_slant ()
void clear_slant ()

Clears the slant field.

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

O(number_of_fields) complexity.

::fuchsia_fonts::wire::Slant & slant ()

See `Slant`.

BuilderImpl & slant (::fuchsia_fonts::wire::Slant elem)

See `Slant`.

bool has_weight ()
void clear_weight ()

Clears the weight field.

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

O(number_of_fields) complexity.

uint16_t & weight ()

Weight or thickness of the glyphs. Allowed values are integers in the range [1, 1000], but

most real-world font families only support some integer multiples of 100:

{100, 200, ..., 900}. Normal text (`WEIGHT_NORMAL`) is 400; `WEIGHT_BOLD` is 700.

See:

https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#Common_weight_name_mapping

https://docs.microsoft.com/en-us/typography/opentype/spec/os2#usweightclass

BuilderImpl & weight (uint16_t elem)

Weight or thickness of the glyphs. Allowed values are integers in the range [1, 1000], but

most real-world font families only support some integer multiples of 100:

{100, 200, ..., 900}. Normal text (`WEIGHT_NORMAL`) is 400; `WEIGHT_BOLD` is 700.

See:

https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#Common_weight_name_mapping

https://docs.microsoft.com/en-us/typography/opentype/spec/os2#usweightclass

bool has_width ()
void clear_width ()

Clears the width field.

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

O(number_of_fields) complexity.

::fuchsia_fonts::wire::Width & width ()

See `Width`.

BuilderImpl & width (::fuchsia_fonts::wire::Width elem)

See `Width`.

Protected Methods

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

Records