Pepper_47_C_interfaces
|
#include <ppb_browser_font_trusted.h>
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 |
Definition at line 77 of file ppb_browser_font_trusted.h.
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.
Definition at line 84 of file ppb_browser_font_trusted.h.
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.
Definition at line 95 of file ppb_browser_font_trusted.h.
PP_Bool PP_BrowserFont_Trusted_Description::italic |
Definition at line 109 of file ppb_browser_font_trusted.h.
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.
Definition at line 116 of file ppb_browser_font_trusted.h.
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.
Definition at line 125 of file ppb_browser_font_trusted.h.
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.
Definition at line 104 of file ppb_browser_font_trusted.h.
PP_Bool PP_BrowserFont_Trusted_Description::small_caps |
Definition at line 110 of file ppb_browser_font_trusted.h.
PP_BrowserFont_Trusted_Weight PP_BrowserFont_Trusted_Description::weight |
Normally you will use either normal or bold.
Definition at line 108 of file ppb_browser_font_trusted.h.
int32_t PP_BrowserFont_Trusted_Description::word_spacing |
Definition at line 117 of file ppb_browser_font_trusted.h.