Searched refs:baseline (Results 1 - 7 of 7) sorted by relevance

/inkscape/share/extensions/
H A Dsvgfont2layers.py46 def flip_cordinate_system(self, d, emsize, baseline):
49 simplepath.translatePath(pathdata, 0, int(emsize) - int(baseline))
61 baseline = font.get("horiz-origin-y")
62 if baseline is None:
63 baseline = 0
78 self.create_horiz_guideline("baseline", int(baseline))
79 self.create_horiz_guideline("ascender", int(baseline) + int(ascender))
80 self.create_horiz_guideline("caps", int(baseline) + int(caps))
81 self.create_horiz_guideline("xheight", int(baseline)
[all...]
H A Dlayers2svgfont.py50 def flip_cordinate_system(self, d, emsize, baseline):
53 simplepath.translatePath(pathdata, 0, int(emsize) - int(baseline))
62 baseline = self.guideline_value("baseline", 1)
63 ascender = self.guideline_value("ascender", 1) - baseline
64 caps = self.guideline_value("caps", 1) - baseline
65 xheight = self.guideline_value("xheight", 1) - baseline
66 descender = baseline - self.guideline_value("descender", 1)
70 font.set("horiz-origin-y", str(baseline))
103 # d = self.flip_cordinate_system(d, emsize, baseline)
[all...]
H A Dsetup_typography_canvas.py74 baseline = descender
76 self.create_horizontal_guideline("baseline", baseline)
77 self.create_horizontal_guideline("ascender", baseline+ascender)
78 self.create_horizontal_guideline("caps", baseline+caps)
79 self.create_horizontal_guideline("xheight", baseline+xheight)
80 self.create_horizontal_guideline("descender", baseline-descender)
/inkscape/src/libnrtype/
H A DLayout-TNG-OutIter.cpp254 Geom::Path Layout::baseline() const function in class:Inkscape::Text::Layout
266 Geom::Path baseline; local
267 baseline.start(left_pt);
268 baseline.appendNew<Geom::LineSegment>(right_pt);
270 return baseline;
510 // up to now *position is the baseline point, not the final point which will be the bottom of the descent
H A DLayout-TNG.h73 - Line: An entire horizontal line with a common baseline. Contains one or
267 \param ascent The number of pixels above the text baseline that this
269 \param descent The number of pixels below the text baseline that this
410 /** Moves all the glyphs in the structure so that the baseline of all
503 text baseline. */
533 /** For latin text, the left side of the character, on the baseline */
536 /** For left aligned text, the leftmost end of the baseline
540 Geom::Path baseline() const;
548 text baseline. */
668 double xheight; // Height of 'x' measured from alphabetic baseline
[all...]
/inkscape/src/extension/internal/
H A Dtext_reassemble.c428 \brief Find baseline on Y axis of a complex.
429 If the complex is a TR_TEXT or TR_LINE find its baseline.
430 If the complex is TR_PARA_[UCLR]J find the baseline of the last line.
431 If there are multiple text elements in a TR_LINE, the baseline is that of the
435 \return Returns 0 if it cannot determine a baseline, else returns the baseline Y coordinate.
442 double baseline=0; local
457 baseline = bri->rects[trec].yll - tpi->chunks[trec].boff;
483 baseline = bri->rects[trec].yll - tpi->chunks[trec].boff;
490 baseline
[all...]
/inkscape/src/
H A Dobject-snapper.cpp406 // Snap to the text baseline
410 pv->push_back(layout->baseline() * root_item->i2dt_affine() * (*i).additional_affine * _snapmanager->getDesktop()->doc2dt());

Completed in 757 milliseconds