Package org.eclipse.e4.ui.css.core.css2
Class CSS2FontHelper
java.lang.Object
org.eclipse.e4.ui.css.core.css2.CSS2FontHelper
CSS2 Font Helper.
- Version:
- 1.0.0
- Author:
- Angelo ZERR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturn the CSS Font Property name (font-style, font-weight, font-size, font-family) switch theCSSPrimitiveValuevalue.static StringgetFontFamily(String family) Return CSS2 font-family.static StringgetFontSize(int size) Return CSS2 font-size of intsize.static StringgetFontStyle(boolean isItalic) Return CSS2 font-style.static StringgetFontWeight(boolean isBold) Return CSS2 font-weight.
-
Constructor Details
-
CSS2FontHelper
public CSS2FontHelper()
-
-
Method Details
-
getFontFamily
Return CSS2 font-family. Escape fontfamilywith " if need. -
getFontSize
Return CSS2 font-size of intsize. -
getFontStyle
Return CSS2 font-style. -
getFontWeight
Return CSS2 font-weight. -
getCSSFontPropertyName
Return the CSS Font Property name (font-style, font-weight, font-size, font-family) switch theCSSPrimitiveValuevalue.
-