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 PropertyValueDEFAULT_LARGERprivate static PropertyValueDEFAULT_SMALLERprivate static java.util.LinkedHashMap<IdentValue,PropertyValue>FIXED_FONT_SIZESprivate 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 PropertyValuegetDefaultRelativeFontSize(IdentValue fontSize)static IdentValuegetNextLarger(IdentValue absFontSize)static IdentValuegetNextSmaller(IdentValue absFontSize)private static booleanisMonospace(java.lang.String[] fontFamilies)static PropertyValueresolveAbsoluteFontSize(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)
-
-