Package com.openhtmltopdf.css.style
Class FontSizeHelper
- java.lang.Object
-
- com.openhtmltopdf.css.style.FontSizeHelper
-
public class FontSizeHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static PropertyValue
DEFAULT_LARGER
private static PropertyValue
DEFAULT_SMALLER
private static java.util.LinkedHashMap<IdentValue,PropertyValue>
FIXED_FONT_SIZES
private static java.util.LinkedHashMap<IdentValue,PropertyValue>
PROPORTIONAL_FONT_SIZES
-
Constructor Summary
Constructors Constructor Description FontSizeHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyValue
getDefaultRelativeFontSize(IdentValue fontSize)
static IdentValue
getNextLarger(IdentValue absFontSize)
static IdentValue
getNextSmaller(IdentValue absFontSize)
private static boolean
isMonospace(java.lang.String[] fontFamilies)
static PropertyValue
resolveAbsoluteFontSize(IdentValue fontSize, java.lang.String[] fontFamilies)
-
-
-
Field Detail
-
PROPORTIONAL_FONT_SIZES
private static final java.util.LinkedHashMap<IdentValue,PropertyValue> PROPORTIONAL_FONT_SIZES
-
FIXED_FONT_SIZES
private static final java.util.LinkedHashMap<IdentValue,PropertyValue> FIXED_FONT_SIZES
-
DEFAULT_SMALLER
private static final PropertyValue DEFAULT_SMALLER
-
DEFAULT_LARGER
private static final PropertyValue DEFAULT_LARGER
-
-
Method Detail
-
getNextSmaller
public static IdentValue getNextSmaller(IdentValue absFontSize)
-
getNextLarger
public static IdentValue getNextLarger(IdentValue absFontSize)
-
resolveAbsoluteFontSize
public static PropertyValue resolveAbsoluteFontSize(IdentValue fontSize, java.lang.String[] fontFamilies)
-
getDefaultRelativeFontSize
public static PropertyValue getDefaultRelativeFontSize(IdentValue fontSize)
-
isMonospace
private static boolean isMonospace(java.lang.String[] fontFamilies)
-
-