Interface IResourceAssemblyIdentifier
Represents the factory to access some resources of the current assembly such as strings stored in RESX files, or Fonts.
Namespace: DevToys.Api
Assembly: DevToys.Api.dll
Syntax
public interface IResourceAssemblyIdentifier
Remarks
[Export(typeof(MyResourceAssemblyIdentifier))]
[Name(nameof(MyResourceAssemblyIdentifier))]
internal sealed class MyResourceAssemblyIdentifier : IResourceAssemblyIdentifier
{
}
Methods
GetFontDefinitionsAsync()
Get access to fonts that can be used by IGuiTool.
Declaration
ValueTask<FontDefinition[]> GetFontDefinitionsAsync()
Returns
Type | Description |
---|---|
ValueTask<FontDefinition[]> | An array of font definition with a stream to access it. |
Remarks
The font is expected to be a TTF or OTF. WOFF and WOFF2 aren't supported at the moment.