class TypefaceResponse

Defined at line 272 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/wire_types.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 Methods

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

void TypefaceResponse ()

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

void TypefaceResponse (const TypefaceResponse & other)

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

TypefaceResponse & operator= (const TypefaceResponse & other)

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

void TypefaceResponse (TypefaceResponse && other)

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

void _CloseHandles ()
::fidl::WireTableBuilder< ::fuchsia_fonts::wire::TypefaceResponse> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_fonts::wire::TypefaceResponse> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_fonts::wire::TypefaceResponse>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

::fuchsia_mem::wire::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).

bool has_buffer ()
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.

bool has_buffer_id ()
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).

bool has_font_index ()
TypefaceResponse & operator= (TypefaceResponse && other)

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

void ~TypefaceResponse ()

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

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder