Function

Pango.tailor_break

Declaration [src]

void
pango_tailor_break (
  const char* text,
  int length,
  PangoAnalysis* analysis,
  int offset,
  PangoLogAttr* log_attrs,
  int log_attrs_len
)

Description [src]

Apply language-specific tailoring to the breaks in log_attrs.

The line breaks are assumed to have been produced by pango_default_break().

If offset is not -1, it is used to apply attributes from analysis that are relevant to line breaking.

Parameters

text const char*
 

text to process. Must be valid UTF-8

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
length int
 

length in bytes of text

analysis PangoAnalysis
 

PangoAnalysis for text

 Ownership is not transferred to the callee
offset int
 

Byte offset of text from the beginning of the paragraph, or -1 to ignore attributes from analysis

log_attrs An array of PangoLogAttr
 

array with one PangoLogAttr per character in text, plus one extra, to be filled in

 The length of the array is in the log_attrs_len argument
 Ownership is not transferred to the callee
log_attrs_len int
 

length of log_attrs array