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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Later
    • None
    • Affects Version/s: 3.8.3
    • Component/s: 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.

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

              Created:
              Updated: