Pepper_31_C_interfaces
Public Attributes | List of all members
PP_TextRun_Dev Struct Reference

#include <ppb_font_dev.h>

Collaboration diagram for PP_TextRun_Dev:
Collaboration graph

Public Attributes

struct PP_Var text
 
PP_Bool rtl
 
PP_Bool override_direction
 

Detailed Description

Definition at line 136 of file ppb_font_dev.h.

Member Data Documentation

PP_Bool PP_TextRun_Dev::override_direction

Set to PP_TRUE to force the directionality of the text regardless of content.

If this flag is set, the browser will skip autodetection of the content and will display all text in the direction specified by the rtl flag.

Definition at line 166 of file ppb_font_dev.h.

PP_Bool PP_TextRun_Dev::rtl

Set to PP_TRUE if the text is right-to-left.

When override_direction is false, the browser will perform the Unicode Bidirectional Algorithm (http://unicode.org/reports/tr9/) on the text. The value of the rtl flag specifies the directionality of the surrounding environment. This means that Hebrew word will always display right to left, even if rtl is false.

When override_direction is true, no autodetection will be done and rtl specifies the direction of the text.

TODO(brettw) note that autodetection with rtl = true is currently unimplemented.

Definition at line 157 of file ppb_font_dev.h.

struct PP_Var PP_TextRun_Dev::text

This var must either be a string or a null/undefined var (which will be treated as a 0-length string).

Definition at line 141 of file ppb_font_dev.h.


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