Package org.zkoss.zss.model

Examples of org.zkoss.zss.model.FontStyle


      if (striketThrough) {
        sb.append("text-decoration:").append("line-through;");
      }

      FontStyle fontStyle = format.getFontStyle();
      if (fontStyle != null) {
        if (fontStyle.equals(FontStyle.BOLDITALIC)) {
          sb.append("font-weight:").append("bold;");
          sb.append("font-style:").append("italic;");
        } else if (fontStyle.equals(FontStyle.ITALIC)) {
          sb.append("font-style:").append("italic;");
        } else if (fontStyle.equals(FontStyle.BOLD)) {
          sb.append("font-weight:").append("bold;");
        }
      }

      int fontSize = format.getFontSize();
View Full Code Here


   * jxl to ZK
   * @param font jxl.format.Font
   * @return a FonrStlye object
   */
  public static FontStyle getFontStyle(jxl.format.Font font){
    FontStyle style = FontStyle.REGULAR;
    //default font weight is 400
    boolean isBold = (font.getBoldWeight() > 400);
    boolean isItalic = font.isItalic();
    if(isBold && isItalic){
      style = FontStyle.BOLDITALIC;
View Full Code Here

TOP

Related Classes of org.zkoss.zss.model.FontStyle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.