1,295
edits
| Line 21: | Line 21: | ||
void GetCharacterFlags(int pos, int len, CharFlags* flags); | void GetCharacterFlags(int pos, int len, CharFlags* flags); | ||
// Set whether or not this text run starts/ends a word | struct RunFlags { | ||
void | PRPackedBool startsWord; | ||
PRPackedBool endsWord; | |||
PRPackedBool startsLine; | |||
PRPackedBool endsLine; | |||
}; | |||
// Set whether or not this text run starts/ends a word. | |||
// This must NOT change the character flags but it can change the geometry. | |||
void SetRunFlags(RunFlags flags); | |||
RunFlags GetRunFlags(); | |||
// Set the spacing between clusters. For each character index i that is | // Set the spacing between clusters. For each character index i that is | ||
| Line 32: | Line 38: | ||
// For each character index i that is not the start of a cluster, | // For each character index i that is not the start of a cluster, | ||
// spacingArray[i] must be zero. spacingArray[0] must be zero. | // spacingArray[i] must be zero. spacingArray[0] must be zero. | ||
// This must NOT change the character flags but it can change the geometry. | |||
void SetSpacing(gfxFloat* spacingArray); | void SetSpacing(gfxFloat* spacingArray); | ||
edits