class Provider

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

Provider of digital font files and metadata.

TODO(https://fxbug.dev/42170326): Remove deprecated methods and move to provider.fidl.

Public Members

static const char[] Name_

Public Methods

void ~Provider ()
void GetFont (::fuchsia::fonts::Request request, GetFontCallback callback)

Deprecated. See `GetTypeface`.

Returns font that matches specified `request`.

void GetFamilyInfo (::std::string family, GetFamilyInfoCallback callback)

Deprecated. See `GetFontFamilyInfo`.

Returns information for the specified font family or null if there is

no family with the specified name. This function respects family name

aliases and ignores case, so request for "robotoSLAB" will return

FamilyInfo for "Roboto Slab".

void GetTypeface (::fuchsia::fonts::TypefaceRequest request, GetTypefaceCallback callback)

Returns a typeface that matches the specified `request`, or an empty table if no matching

face is found. (The latter is more likely to happen if `TypefaceRequestFlags.EXACT_FAMILY`

is used to disable fallbacks.)

void GetFontFamilyInfo (::fuchsia::fonts::FamilyName family, GetFontFamilyInfoCallback callback)

Returns information for the specified font family, or an empty table if there is no family

with the specified name.

This function respects family name aliases and ignores case. For example, "RobotoSlab" is an

alias for the canonical name "Roboto Slab". A request for "robotoSLAB" would return the

`FontFamilyInfo` for "Roboto Slab" due to the case-insensitivity and alias resolution.

void RegisterFontSetEventListener (::fidl::InterfaceHandle< ::fuchsia::fonts::FontSetEventListener> listener, RegisterFontSetEventListenerCallback callback)

Register a listener to be notified when the set of available fonts or mappings has changed.

A client can register as many listeners as it wishes.

To unregister, close the channel.