Pepper_31_C_interfaces
Public Attributes | List of all members
PP_FontDescription_Dev Struct Reference

#include <ppb_font_dev.h>

Collaboration diagram for PP_FontDescription_Dev:
Collaboration graph

Public Attributes

struct PP_Var face
 
PP_FontFamily_Dev family
 
uint32_t size
 
PP_FontWeight_Dev weight
 
PP_Bool italic
 
PP_Bool small_caps
 
int32_t letter_spacing
 
int32_t word_spacing
 
int32_t padding
 

Detailed Description

Definition at line 75 of file ppb_font_dev.h.

Member Data Documentation

struct PP_Var PP_FontDescription_Dev::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 82 of file ppb_font_dev.h.

PP_FontFamily_Dev PP_FontDescription_Dev::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 93 of file ppb_font_dev.h.

PP_Bool PP_FontDescription_Dev::italic

Definition at line 107 of file ppb_font_dev.h.

int32_t PP_FontDescription_Dev::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 114 of file ppb_font_dev.h.

int32_t PP_FontDescription_Dev::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 123 of file ppb_font_dev.h.

uint32_t PP_FontDescription_Dev::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 102 of file ppb_font_dev.h.

PP_Bool PP_FontDescription_Dev::small_caps

Definition at line 108 of file ppb_font_dev.h.

PP_FontWeight_Dev PP_FontDescription_Dev::weight

Normally you will use either PP_FONTWEIGHT_NORMAL or PP_FONTWEIGHT_BOLD.

Definition at line 106 of file ppb_font_dev.h.

int32_t PP_FontDescription_Dev::word_spacing

Definition at line 115 of file ppb_font_dev.h.


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