public int getHorizAdvX() { if (horizAdvX == -1) { horizAdvX = ((Font) parent).getHorizAdvX(); } return horizAdvX; }
public int getDescent() { if (descent == -1) { descent = ((Font) parent).getVertOriginY(); } return descent; }
FontFace fontFace = font.getFontFace(); MissingGlyph glyph = font.getGlyph(unicode);
public int getVertOriginY() { if (vertOriginY == -1) { vertOriginY = ((Font) parent).getFontFace().getAscent(); } return vertOriginY; }
protected void build() throws SVGException { super.build(); StyleAttribute sty = new StyleAttribute(); if (getPres(sty.setName("horiz-origin-x"))) horizOriginX = sty.getIntValue(); if (getPres(sty.setName("horiz-origin-y"))) horizOriginY = sty.getIntValue(); if (getPres(sty.setName("horiz-adv-x"))) horizAdvX = sty.getIntValue(); if (getPres(sty.setName("vert-origin-x"))) vertOriginX = sty.getIntValue(); if (getPres(sty.setName("vert-origin-y"))) vertOriginY = sty.getIntValue(); if (getPres(sty.setName("vert-adv-y"))) vertAdvY = sty.getIntValue(); }
MissingGlyph glyph = font.getGlyph(unicode);
FontFace fontFace = font.getFontFace(); MissingGlyph glyph = font.getGlyph(unicode);
public int getVertAdvY() { if (vertAdvY == -1) { vertAdvY = ((Font) parent).getFontFace().getUnitsPerEm(); } return vertAdvY; }
protected void build() throws SVGException { super.build(); StyleAttribute sty = new StyleAttribute(); if (getPres(sty.setName("horiz-origin-x"))) { horizOriginX = sty.getIntValue(); } if (getPres(sty.setName("horiz-origin-y"))) { horizOriginY = sty.getIntValue(); } if (getPres(sty.setName("horiz-adv-x"))) { horizAdvX = sty.getIntValue(); } if (getPres(sty.setName("vert-origin-x"))) { vertOriginX = sty.getIntValue(); } if (getPres(sty.setName("vert-origin-y"))) { vertOriginY = sty.getIntValue(); } if (getPres(sty.setName("vert-adv-y"))) { vertAdvY = sty.getIntValue(); } }
MissingGlyph glyph = font.getGlyph(unicode);
FontFace fontFace = font.getFontFace(); int ascent = fontFace.getAscent(); float fontScale = fontSize / (float) ascent; MissingGlyph glyph = font.getGlyph(unicode);
public float getVertOriginY() { if (vertOriginY == -1) { vertOriginY = ((Font) parent).getFontFace().getAscent(); } return vertOriginY; }
public int getDescent() { if (descent == -1) { descent = ((Font) parent).getVertOriginY(); } return descent; }
public float getHorizAdvX() { if (horizAdvX == -1) { horizAdvX = ((Font) parent).getHorizAdvX(); } return horizAdvX; }
@Override protected void build() throws SVGException { super.build(); StyleAttribute sty = new StyleAttribute(); if (getPres(sty.setName("horiz-origin-x"))) { horizOriginX = sty.getIntValue(); } if (getPres(sty.setName("horiz-origin-y"))) { horizOriginY = sty.getIntValue(); } if (getPres(sty.setName("horiz-adv-x"))) { horizAdvX = sty.getIntValue(); } if (getPres(sty.setName("vert-origin-x"))) { vertOriginX = sty.getIntValue(); } if (getPres(sty.setName("vert-origin-y"))) { vertOriginY = sty.getIntValue(); } if (getPres(sty.setName("vert-adv-y"))) { vertAdvY = sty.getIntValue(); } }
MissingGlyph glyph = font.getGlyph(unicode);
FontFace fontFace = font.getFontFace(); int ascent = fontFace.getAscent(); float fontScale = fontSize / (float)ascent; MissingGlyph glyph = font.getGlyph(unicode);
/** * Called by the Font element to let the universe know that a font has been * loaded and is available. */ void registerFont(Font font) { loadedFonts.put(font.getFontFace().getFontFamily(), font); }
public int getDescent() { if (descent == -1) descent = ((Font)parent).getVertOriginY(); return descent; }
public int getHorizAdvX() { if (horizAdvX == -1) horizAdvX = ((Font)parent).getHorizAdvX(); return horizAdvX; }