The TrueTypeFont_Dev
class represents a TrueType font resource.
More...
#include <truetype_font_dev.h>
The TrueTypeFont_Dev
class represents a TrueType font resource.
Definition at line 94 of file truetype_font_dev.h.
pp::TrueTypeFont_Dev::TrueTypeFont_Dev |
( |
| ) |
|
A constructor used to create a TrueTypeFont_Dev
and associate it with the provided Instance
.
- Parameters
-
[in] | instance | The instance that owns this resource. |
A constructor used when you have received a PP_Resource as a return value that has had its reference count incremented for you.
- Parameters
-
[in] | resource | A PP_Resource corresponding to a TrueType font. |
Returns a description of the given font resource. This description may differ from the description passed to Create, reflecting the host's font matching and fallback algorithm.
- Parameters
-
- Returns
- A return code from
pp_errors.h
. If an error code is returned, the descriptor will be left unchanged.
Gets an array of TrueType font family names available on the host. These names can be used to create a font from a specific family.
- Parameters
-
- Returns
- If >= 0, the number of family names returned, otherwise an error code from
pp_errors.h
.
Gets an array of TrueType font descriptors for a given font family. These descriptors can be used to create a font in that family and matching the descriptor attributes.
- Parameters
-
[in] | instance | A PP_Instance requesting the font descriptors. |
[in] | family | A Var holding a string specifying the font family. |
[in] | callback | A CompletionCallbackWithOutput to be called upon completion of GetFontsInFamily. |
- Returns
- If >= 0, the number of font descriptors returned, otherwise an error code from
pp_errors.h
.
Copies the given font table into client memory.
- Parameters
-
[in] | table | A 4 byte value indicating which table to copy. For example, 'glyf' will cause the outline table to be copied into the output array. A zero tag value will cause the entire font to be copied. |
[in] | offset | The offset into the font table. |
[in] | max_data_length | The maximum number of bytes to transfer from offset . |
[in] | callback | A CompletionCallbackWithOutput to be called upon completion of GetTable. |
- Returns
- If >= 0, the table size in bytes, otherwise an error code from
pp_errors.h
.
Gets an array of identifying tags for each table in the font. These tags can be used to request specific tables using GetTable.
- Parameters
-
- Returns
- If >= 0, the number of table tags returned, otherwise an error code from
pp_errors.h
.
The documentation for this class was generated from the following file: