Lines Matching defs:glyph
31 #include "sp-glyph.h"
32 #include "sp-missing-glyph.h"
34 #include "sp-glyph-kerning.h"
66 unsigned long glyph,
71 return instance->scaled_font_render_glyph(scaled_font, glyph, cr, metrics);
121 SPGlyph *glyph,
127 && (vkern->u2->contains(glyph->unicode[0])
128 || vkern->g2->contains(glyph->glyph_name.c_str()));
134 SPGlyph *glyph,
140 && (hkern->u2->contains(glyph->unicode[0])
141 || hkern->g2->contains(glyph->glyph_name.c_str()));
159 // is used to properly render this string. It also defines the respective coordinates of each glyph. Thus, it
160 // has to read the attributes of the SVGFont hkern and vkern nodes in order to adjust the glyph kerning.
161 //It also determines the usage of the missing-glyph in portions of the string that does not match any of the declared glyphs.
196 double x=0, y=0;//These vars store the position of the glyph within the rendered string
203 //check whether is there a glyph declared on the SVG document
207 //apply glyph kerning if appropriate
223 //advance glyph coordinates:
237 //advance glyph coordinates:
251 //This glyph has a path description on its d attribute, so we render it:
254 //adjust scale of the glyph
290 unsigned long glyph,
296 // We have glyphs.size() glyphs and possibly one missing-glyph declared on this SVG document
297 // The id of the missing-glyph is always equal to glyphs.size()
300 if (glyph > this->glyphs.size()) return CAIRO_STATUS_SUCCESS;//TODO: this is an error!
303 if (glyph == glyphs.size()){
309 node = glyphs[glyph];
321 //glyphs can be described by arbitrary SVG declared in the childnodes of a glyph node
322 // or using the d attribute of a glyph node.
341 //render the SVG described on this glyph's child nodes.
378 SPGlyph *glyph = dynamic_cast<SPGlyph *>(node);
379 if (glyph) {
380 glyphs.push_back(glyph);