Pepper_31_C_interfaces
Public Attributes | List of all members
PP_TrueTypeFontDesc_Dev Struct Reference

#include <ppb_truetype_font_dev.h>

Collaboration diagram for PP_TrueTypeFontDesc_Dev:
Collaboration graph

Public Attributes

struct PP_Var family
 
PP_TrueTypeFontFamily_Dev generic_family
 
PP_TrueTypeFontStyle_Dev style
 
PP_TrueTypeFontWeight_Dev weight
 
PP_TrueTypeFontWidth_Dev width
 
PP_TrueTypeFontCharset_Dev charset
 
int32_t padding
 

Detailed Description

The PP_TrueTypeFontDesc struct describes a TrueType font. It is passed to Create(), and returned by Describe().

Definition at line 131 of file ppb_truetype_font_dev.h.

Member Data Documentation

PP_TrueTypeFontCharset_Dev PP_TrueTypeFontDesc_Dev::charset

This value specifies a character set.

Definition at line 149 of file ppb_truetype_font_dev.h.

struct PP_Var PP_TrueTypeFontDesc_Dev::family

Font family name as a string. This can also be an undefined var, in which case the generic family will be obeyed. If the face is not available on the system, the browser will attempt to do font fallback or pick a default font.

Definition at line 138 of file ppb_truetype_font_dev.h.

PP_TrueTypeFontFamily_Dev PP_TrueTypeFontDesc_Dev::generic_family

This value specifies a generic font family. If a family name string is provided when creating a font, this is ignored.

Definition at line 141 of file ppb_truetype_font_dev.h.

int32_t PP_TrueTypeFontDesc_Dev::padding

Ensure that this struct is 40-bytes wide by padding the end. In some compilers, PP_Var is 8-byte aligned, so those compilers align this struct on 8-byte boundaries as well and pad it to 16 bytes even without this padding attribute. This padding makes its size consistent across compilers.

Definition at line 157 of file ppb_truetype_font_dev.h.

PP_TrueTypeFontStyle_Dev PP_TrueTypeFontDesc_Dev::style

This value specifies the font style.

Definition at line 143 of file ppb_truetype_font_dev.h.

PP_TrueTypeFontWeight_Dev PP_TrueTypeFontDesc_Dev::weight

This value specifies the font weight.

Definition at line 145 of file ppb_truetype_font_dev.h.

PP_TrueTypeFontWidth_Dev PP_TrueTypeFontDesc_Dev::width

This value specifies the font width, for condensed or expanded fonts

Definition at line 147 of file ppb_truetype_font_dev.h.


The documentation for this struct was generated from the following file: