public class FontSizeTranslator
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static float |
DEFAULT_FONT_SIZE |
Constructor | Description |
---|---|
FontSizeTranslator() |
Modifier and Type | Method | 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 12pttag
- the tag to get the font-size from.Copyright © 1998–2018. All rights reserved.