Pepper_56_C_interfaces
Pepper_56_C_interfaces
|
Public Attributes | |
struct PP_Var | face |
PP_BrowserFont_Trusted_Family | family |
uint32_t | size |
PP_BrowserFont_Trusted_Weight | weight |
PP_Bool | italic |
PP_Bool | small_caps |
int32_t | letter_spacing |
int32_t | word_spacing |
int32_t | padding |
struct PP_Var PP_BrowserFont_Trusted_Description::face |
Font face 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.
PP_BrowserFont_Trusted_Family PP_BrowserFont_Trusted_Description::family |
When Create()ing a font and the face is an undefined var, the family specifies the generic font family type to use. If the face is specified, this will be ignored.
When Describe()ing a font, the family will be the value you passed in when the font was created. In other words, if you specify a face name, the family will not be updated to reflect whether the font name you requested is serif or sans serif.
int32_t PP_BrowserFont_Trusted_Description::letter_spacing |
Adjustment to apply to letter and word spacing, respectively. Initialize to 0 to get normal spacing. Negative values bring letters/words closer together, positive values separate them.
int32_t PP_BrowserFont_Trusted_Description::padding |
Ensure that this struct is 48-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.
uint32_t PP_BrowserFont_Trusted_Description::size |
Size in pixels.
You can specify 0 to get the default font size. The default font size may vary depending on the requested font. The typical example is that the user may have a different font size for the default monospace font to give it a similar optical size to the proportionally spaced fonts.
PP_BrowserFont_Trusted_Weight PP_BrowserFont_Trusted_Description::weight |
Normally you will use either normal or bold.