Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-1219

setRichTextFontTypeOffset() doesn't create a font from an existing font

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Later Later
    • None
    • 3.8.3
    • None
    • None

      in StyleUtil setRichTextFontTypeOffset():

      				FontMatcher fontmatcher = new FontMatcher(font);
      				fontmatcher.setTypeOffset(offset);
      				
      				font = book.searchFont(fontmatcher);
      				if (font == null) {
      					font = book.createFont(font,true);
      					font.setTypeOffset(offset);
      				}
      

      When font is null, it should create a font from an existing font, current code will creat from a default one.

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: