class Style2

Defined at line 959 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

Style properties that can be used when requesting or describing a type face.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

Style2 & set_slant (::fuchsia::fonts::Slant _value)
Style2 & set_weight (uint16_t _value)
Style2 & set_width (::fuchsia::fonts::Width _value)
void Style2 ()
void Style2 (Style2 && other)
void ~Style2 ()
Style2 & operator= (Style2 && other)
::std::unique_ptr<Style2> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Style2 * _value, size_t _offset)
zx_status_t Clone (Style2 * _result)
const ::fuchsia::fonts::Slant & slant ()

See `Slant`.

Defined at line 966 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

bool has_slant ()

Defined at line 970 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

::fuchsia::fonts::Slant * mutable_slant ()

See `Slant`.

Defined at line 975 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

void clear_slant ()

Defined at line 983 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

const 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

Defined at line 998 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

bool has_weight ()

Defined at line 1002 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

uint16_t * mutable_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

Defined at line 1013 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

void clear_weight ()

Defined at line 1021 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

const ::fuchsia::fonts::Width & width ()

See `Width`.

Defined at line 1030 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

bool has_width ()

Defined at line 1034 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

::fuchsia::fonts::Width * mutable_width ()

See `Width`.

Defined at line 1039 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h

void clear_width ()

Defined at line 1047 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h