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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Return the CSS Font Property name (font-style, font-weight, font-size, font-family) switch theCSSPrimitiveValue
value
.static String
getFontFamily
(String family) Return CSS2 font-family.static String
getFontSize
(int size) Return CSS2 font-size of intsize
.static String
getFontStyle
(boolean isItalic) Return CSS2 font-style.static String
getFontWeight
(boolean isBold) Return CSS2 font-weight.
-
Constructor Details
-
CSS2FontHelper
public CSS2FontHelper()
-
-
Method Details
-
getFontFamily
Return CSS2 font-family. Escape fontfamily
with " 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 theCSSPrimitiveValue
value
.
-