RetroArch
|
#include <dwrite_2.h>
Go to the source code of this file.
Classes | |
struct | DWRITE_FONT_PROPERTY |
Font property used for filtering font sets and building a font set with explicit properties. More... | |
struct | DWRITE_LINE_METRICS1 |
The interface that represents text rendering settings for glyph rasterization and filtering. More... | |
struct | DWRITE_LINE_SPACING |
The DWRITE_LINE_SPACING structure specifies the parameters used to specify how to manage space between lines. More... | |
struct | DWRITE_COLOR_GLYPH_RUN1 |
Represents a color glyph run. The IDWriteFactory4::TranslateColorGlyphRun method returns an ordered collection of color glyph runs of varying types depending on what the font supports. More... | |
struct | DWRITE_GLYPH_IMAGE_DATA |
Data for a single glyph from GetGlyphImageData. More... | |
struct | DWRITE_FILE_FRAGMENT |
Enumerator for an ordered collection of color glyph runs. More... | |
struct | DWRITE_FONT_AXIS_VALUE |
Value for a font axis, used when querying and creating font instances. More... | |
struct | DWRITE_FONT_AXIS_RANGE |
Minimum and maximum range of a font axis. More... | |
Macros | |
#define | DWRITE_E_REMOTEFONT _HRESULT_TYPEDEF_(0x8898500DL) |
A font resource could not be accessed because it was remote. This can happen when calling CreateFontFace on a non-local font or trying to measure/draw glyphs that are not downloaded yet. More... | |
#define | DWRITE_E_DOWNLOADCANCELLED _HRESULT_TYPEDEF_(0x8898500EL) |
The download was canceled, which happens if the application calls IDWriteFontDownloadQueue::CancelDownload before they finish. More... | |
#define | DWRITE_E_DOWNLOADFAILED _HRESULT_TYPEDEF_(0x8898500FL) |
The download failed to complete because the remote resource is missing or the network is down. More... | |
#define | DWRITE_E_TOOMANYDOWNLOADS _HRESULT_TYPEDEF_(0x88985010L) |
A download request was not added or a download failed because there are too many active downloads. More... | |
#define | DWRITE_MAKE_FONT_AXIS_TAG(a, b, c, d) (static_cast<DWRITE_FONT_AXIS_TAG>(DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d))) |
Creates an OpenType tag for a font axis. More... | |
Variables | |
interface DWRITE_DECLARE_INTERFACE("68648C83-6EDE-46C0-AB46-20083A887FDE") IDWriteRemoteFontFileLoader interface DWRITE_DECLARE_INTERFACE("DC102F47-A12D-4B1C-822D-9E117E33043F") IDWriteInMemoryFontFileLoader interface DWRITE_DECLARE_INTERFACE("958DB99A-BE2A-4F09-AF7D-65189803D1D3") IDWriteFactory5 interface | IDWriteFontResource |
The IDWriteRemoteFontFileLoader interface represents a font file loader that can access remote (i.e., downloadable) fonts. The IDWriteFactory5::CreateHttpFontFileLoader method returns an instance of this interface, or a client can create its own implementation. More... | |
#define DWRITE_E_DOWNLOADCANCELLED _HRESULT_TYPEDEF_(0x8898500EL) |
The download was canceled, which happens if the application calls IDWriteFontDownloadQueue::CancelDownload before they finish.
#define DWRITE_E_DOWNLOADFAILED _HRESULT_TYPEDEF_(0x8898500FL) |
The download failed to complete because the remote resource is missing or the network is down.
#define DWRITE_E_REMOTEFONT _HRESULT_TYPEDEF_(0x8898500DL) |
A font resource could not be accessed because it was remote. This can happen when calling CreateFontFace on a non-local font or trying to measure/draw glyphs that are not downloaded yet.
#define DWRITE_E_TOOMANYDOWNLOADS _HRESULT_TYPEDEF_(0x88985010L) |
A download request was not added or a download failed because there are too many active downloads.
#define DWRITE_MAKE_FONT_AXIS_TAG | ( | a, | |
b, | |||
c, | |||
d | |||
) | (static_cast<DWRITE_FONT_AXIS_TAG>(DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d))) |
Creates an OpenType tag for a font axis.
Apply certain axes automatically in layout during font selection.
IDWriteRemoteFontFileStream represents a font file stream parts of which may be non-local. Non-local data must be downloaded before it can be accessed using ReadFragment. The interface exposes methods to download font data and query the locality of font data.
For more information, see the description of IDWriteRemoteFontFileLoader.
Specifies the container format of a font resource. A container format is distinct from a font file format (DWRITE_FONT_FILE_TYPE) because the container describes the container in which the underlying font file is packaged.
Enumerator | |
---|---|
DWRITE_CONTAINER_TYPE_UNKNOWN | |
DWRITE_CONTAINER_TYPE_WOFF | |
DWRITE_CONTAINER_TYPE_WOFF2 |
Attributes for a font axis.
enum DWRITE_FONT_AXIS_TAG : UINT32 |
Four character identifier for a font axis.
Use DWRITE_MAKE_FONT_AXIS_TAG() to create a custom one.
Enumerator | |
---|---|
DWRITE_FONT_AXIS_TAG_WEIGHT | |
DWRITE_FONT_AXIS_TAG_WIDTH | |
DWRITE_FONT_AXIS_TAG_SLANT | |
DWRITE_FONT_AXIS_TAG_OPTICAL_SIZE | |
DWRITE_FONT_AXIS_TAG_ITALIC |
How font families are grouped together, used by IDWriteFontCollection.
Specify whether DWRITE_FONT_METRICS::lineGap value should be part of the line metrics.
The font property enumeration identifies a string in a font.
Enumerator | |
---|---|
DWRITE_FONT_PROPERTY_ID_NONE | Unspecified font property identifier. |
DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME | Family name for the weight-stretch-style model. |
DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME | Family name preferred by the designer. This enables font designers to group more than four fonts in a single family without losing compatibility with GDI. This name is typically only present if it differs from the GDI-compatible family name. |
DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FACE_NAME | Face name of the for the weight-stretch-style (e.g., Regular or Bold). |
DWRITE_FONT_PROPERTY_ID_FULL_NAME | The full name of the font, e.g. "Arial Bold", from name id 4 in the name table. |
DWRITE_FONT_PROPERTY_ID_WIN32_FAMILY_NAME | GDI-compatible family name. Because GDI allows a maximum of four fonts per family, fonts in the same family may have different GDI-compatible family names (e.g., "Arial", "Arial Narrow", "Arial Black"). |
DWRITE_FONT_PROPERTY_ID_POSTSCRIPT_NAME | The postscript name of the font, e.g. "GillSans-Bold" from name id 6 in the name table. |
DWRITE_FONT_PROPERTY_ID_DESIGN_SCRIPT_LANGUAGE_TAG | Script/language tag to identify the scripts or languages that the font was primarily designed to support. The design script/language tag is meant to be understood from the perspective of users. For example, a font is considered designed for English if it is considered useful for English users. Note that this is different from what a font might be capable of supporting. For example, the Meiryo font was primarily designed for Japanese users. While it is capable of displaying English well, it was not meant to be offered for the benefit of non-Japanese-speaking English users.
ScriptLangTag = [language "-"] script ["-" region] *("-" variant) *("-" extension) ["-" privateuse] The expansion of the elements and the intended semantics associated with each are as defined in BCP 47. Script subtags are taken from ISO 15924. At present, no extensions are defined, and any extension should be ignored. Private use subtags are defined by private agreement between the source and recipient and may be ignored.
|
DWRITE_FONT_PROPERTY_ID_SUPPORTED_SCRIPT_LANGUAGE_TAG | Script/language tag to identify the scripts or languages that the font declares it is able to support. |
DWRITE_FONT_PROPERTY_ID_SEMANTIC_TAG | Semantic tag to describe the font (e.g. Fancy, Decorative, Handmade, Sans-serif, Swiss, Pixel, Futuristic). |
DWRITE_FONT_PROPERTY_ID_WEIGHT | Weight of the font represented as a decimal string in the range 1-999. <remark> This enum is discouraged for use with IDWriteFontSetBuilder2 in favor of the more generic font axis DWRITE_FONT_AXIS_TAG_WEIGHT which supports higher precision and range. </remark> |
DWRITE_FONT_PROPERTY_ID_STRETCH | Stretch of the font represented as a decimal string in the range 1-9. <remark> This enum is discouraged for use with IDWriteFontSetBuilder2 in favor of the more generic font axis DWRITE_FONT_AXIS_TAG_WIDTH which supports higher precision and range. </remark> |
DWRITE_FONT_PROPERTY_ID_STYLE | Style of the font represented as a decimal string in the range 0-2. <remark> This enum is discouraged for use with IDWriteFontSetBuilder2 in favor of the more generic font axes DWRITE_FONT_AXIS_TAG_SLANT and DWRITE_FONT_AXIS_TAG_ITAL. </remark> |
DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FACE_NAME | Face name preferred by the designer. This enables font designers to group more than four fonts in a single family without losing compatibility with GDI. |
DWRITE_FONT_PROPERTY_ID_TOTAL | Total number of properties for NTDDI_WIN10 (IDWriteFontSet). DWRITE_FONT_PROPERTY_ID_TOTAL cannot be used as a property ID. |
DWRITE_FONT_PROPERTY_ID_TOTAL_RS3 | Total number of properties for NTDDI_WIN10_RS3 (IDWriteFontSet1). |
DWRITE_FONT_PROPERTY_ID_PREFERRED_FAMILY_NAME | |
DWRITE_FONT_PROPERTY_ID_FAMILY_NAME | |
DWRITE_FONT_PROPERTY_ID_FACE_NAME |
enum DWRITE_LOCALITY |
Specifies the locality of a resource.
Represents a method of rendering glyphs.
interface DWRITE_DECLARE_INTERFACE ("68648C83-6EDE-46C0-AB46-20083A887FDE") IDWriteRemoteFontFileLoader interface DWRITE_DECLARE_INTERFACE ("DC102F47-A12D-4B1C-822D-9E117E33043F") IDWriteInMemoryFontFileLoader interface DWRITE_DECLARE_INTERFACE ("958DB99A-BE2A-4F09-AF7D-65189803D1D3") IDWriteFactory5 interface IDWriteFontResource |
The IDWriteRemoteFontFileLoader interface represents a font file loader that can access remote (i.e., downloadable) fonts. The IDWriteFactory5::CreateHttpFontFileLoader method returns an instance of this interface, or a client can create its own implementation.
Calls to a remote file loader or stream should never block waiting for network operations. Any call that cannot succeeded immediately using local (e.g., cached) must should return DWRITE_E_REMOTEFONT. This error signifies to DWrite that it should add requests to the font download queue.
The IDWriteInMemoryFontFileLoader interface enables clients to reference in-memory fonts without having to implement a custom loader. The IDWriteFactory5::CreateInMemoryFontFileLoader method returns an instance of this interface, which the client is responsible for registering and unregistering using IDWriteFactory::RegisterFontFileLoader and IDWriteFactory::UnregisterFontFileLoader.
The root factory interface for all DWrite objects.