class TypefaceResponse
Defined at line 615 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
Response to a TypefaceRequest. Contains the digital font file and metadata corresponding to a
returned typeface. Clients are expected to cache the results if they plan to reuse them.
If a matching typeface cannot be found, the table will be empty.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
TypefaceResponse & set_buffer (::fuchsia::mem::Buffer _value)
TypefaceResponse & set_buffer_id (uint32_t _value)
TypefaceResponse & set_font_index (uint32_t _value)
void TypefaceResponse ()
void TypefaceResponse (TypefaceResponse && other)
void ~TypefaceResponse ()
TypefaceResponse & operator= (TypefaceResponse && other)
::std::unique_ptr<TypefaceResponse> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, TypefaceResponse * _value, size_t _offset)
zx_status_t Clone (TypefaceResponse * _result)
const ::fuchsia::mem::Buffer & buffer ()
A memory buffer containing the bytes of a digital font file.
It is the client's responsibility to identify the type of file and to parse it (usually by
delegating to FreeType or a similar library).
Defined at line 624 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
bool has_buffer ()
Defined at line 628 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
::fuchsia::mem::Buffer * mutable_buffer ()
A memory buffer containing the bytes of a digital font file.
It is the client's responsibility to identify the type of file and to parse it (usually by
delegating to FreeType or a similar library).
Defined at line 635 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
void clear_buffer ()
Defined at line 643 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
const uint32_t & buffer_id ()
Identifier for the buffer. Responses with the same `buffer_id` are guaranteed to contain the
same data in the buffer. Clients may use this value to detect if they already have the font
cached in parsed form.
Defined at line 654 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
bool has_buffer_id ()
Defined at line 658 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
uint32_t * mutable_buffer_id ()
Identifier for the buffer. Responses with the same `buffer_id` are guaranteed to contain the
same data in the buffer. Clients may use this value to detect if they already have the font
cached in parsed form.
Defined at line 665 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
void clear_buffer_id ()
Defined at line 673 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
const uint32_t & font_index ()
Index of the returned typeface within `buffer`. Used for digital font formats that may
contain more than one typeface per file, e.g. TTC (TrueType Collection).
Defined at line 683 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
bool has_font_index ()
Defined at line 687 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
uint32_t * mutable_font_index ()
Index of the returned typeface within `buffer`. Used for digital font formats that may
contain more than one typeface per file, e.g. TTC (TrueType Collection).
Defined at line 693 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h
void clear_font_index ()
Defined at line 701 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/hlcpp/fuchsia/fonts/cpp/fidl.h