class TypefaceResponse
Defined at line 598 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/natural_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
void TypefaceResponse (Storage_ storage)
bool IsEmpty ()
void TypefaceResponse ()
Defined at line 604 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/natural_types.h
void TypefaceResponse (TypefaceResponse && )
Defined at line 605 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/natural_types.h
const std::optional< ::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).
::std::optional< ::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).
TypefaceResponse & buffer (std::optional< ::fuchsia_mem::Buffer> value)
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).
const std::optional<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.
::std::optional<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.
TypefaceResponse & buffer_id (std::optional<uint32_t> value)
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.
const std::optional<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).
::std::optional<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).
TypefaceResponse & font_index (std::optional<uint32_t> value)
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).
void TypefaceResponse (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
TypefaceResponse & operator= (TypefaceResponse && )
Defined at line 606 of file fidling/gen/sdk/fidl/fuchsia.fonts/fuchsia.fonts/cpp/fidl/fuchsia.fonts/cpp/natural_types.h
Friends
class MemberVisitor
class NaturalTableCodingTraits