You are viewing a plain text version of this content. The canonical link for it is here.
Posted to odf-dev@incubator.apache.org by "Peter Nabbefeld (JIRA)" <ji...@apache.org> on 2017/01/14 14:23:26 UTC

[jira] [Created] (ODFTOOLKIT-444) Bullet fonts not added to office:font-face-decls

Peter Nabbefeld created ODFTOOLKIT-444:
------------------------------------------

             Summary: Bullet fonts not added to office:font-face-decls
                 Key: ODFTOOLKIT-444
                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-444
             Project: ODF Toolkit
          Issue Type: Bug
          Components: simple api
    Affects Versions: 0.6.2-incubating
         Environment: Linux, NetBeans, LibreOffice
            Reporter: Peter Nabbefeld
         Attachments: XBulletDecorator.java

When using a font for bullets not used otherwise in the created document, bulltets are rendered incorrectly because the font is not declared in <office:font-face-decls>.

Obviously, fonts are registered automatically if used in paragraphs, but not if used for bullets.

After further investigation, Fonts in paragraphs and cells are "normalized" by their appropriate style handlers, resulting in a call to TextProperties.getFont(..), which leads to the registration. List items don't provide such a style handler, but set the attributes accordingly.

Please, either provide a style handler or provide an object for registration of fonts (well, the latter could also be used by the style handler and would provide for flexibility at the same time for missing handlers on other objects).

The class I've tested with is attached, please use a font other than those already used in the document or an already registered standard font for the bullets (e.g. "Noto Sans Runic", bulletChar="\u16B8").



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)