public class FontSizeTranslator extends Object
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_FONT_SIZE |
Constructor and Description |
---|
FontSizeTranslator() |
Modifier and Type | Method and Description |
---|---|
float |
getFontSize(Tag tag)
Retrieves the pt font size from Tag.getCSS() with CSS.Property.FONT_SIZE or returns default 12pt
|
static FontSizeTranslator |
getInstance() |
float |
translateFontSize(Tag tag)
Returns the css value of the style font-size in a pt-value.
|
public static final float DEFAULT_FONT_SIZE
public static FontSizeTranslator getInstance()
public float translateFontSize(Tag tag)
tag
- to get the font size of.
public float getFontSize(Tag tag)
Tag.getCSS()
with CSS.Property.FONT_SIZE
or returns default 12pt
tag
- the tag to get the font-size from.
Copyright © 1998–2016. All rights reserved.