Back to index

lightning-sunbird  0.9+nobinonly
Functions
shape.c File Reference
#include "pango-glyph.h"
#include "pango-engine.h"

Go to the source code of this file.

Functions

void pangolite_shape (const gunichar2 *text, gint length, PangoliteAnalysis *analysis, PangoliteGlyphString *glyphs)
 pangolite_shape: : the text to process : the length (in bytes) of : #PangoliteAnalysis structure from PangoliteItemize : glyph string in which to store results

Function Documentation

void pangolite_shape ( const gunichar2 text,
gint  length,
PangoliteAnalysis *  analysis,
PangoliteGlyphString *  glyphs 
)

pangolite_shape: : the text to process : the length (in bytes) of : #PangoliteAnalysis structure from PangoliteItemize : glyph string in which to store results

Given a segment of text and the corresponding

PangoliteAnalysis structure returned from pangolite_itemize(),

convert the characters into glyphs. You may also pass in only a substring of the item from pangolite_itemize().

Definition at line 56 of file shape.c.

{
  if (analysis->shape_engine)
    analysis->shape_engine->script_shape(analysis->fontCharset, text, length, 
                                         analysis, glyphs);
  else {
    pangolite_glyph_string_set_size (glyphs, 1);
    
    glyphs->glyphs[0].glyph = 0;
    glyphs->log_clusters[0] = 0;
  }
  
  g_assert (glyphs->num_glyphs > 0);
}

Here is the call graph for this function: