[jira] [Closed] (FOP-2896) Font Autodetection is not active in default configuration any more

"Joao Goncalves (Jira)" <[email protected]>
Newsgroups gmane.text.xml.fop.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/FOP-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joao Goncalves closed FOP-2896.
-------------------------------
    Fix Version/s: main
       Resolution: Fixed

> Font Autodetection is not active in default configuration any more
> ------------------------------------------------------------------
>
>                 Key: FOP-2896
>                 URL: https://issues.apache.org/jira/browse/FOP-2896
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: Dimitry Polivaev
>            Priority: Major
>             Fix For: main
>
>
> org.apache.fop.svg.AbstractFOPTranscoder.getEffectiveConfiguration() does not work as expected. It contains following code:
> {code:java}
>  if (autoFonts) {
>                 DefaultConfiguration c = new DefaultConfiguration("cfg");
>                 DefaultConfiguration fonts = new DefaultConfiguration("fonts");
>                 c.addChild(fonts);
>                 DefaultConfiguration autodetect = new DefaultConfiguration("auto-detect");
>                 fonts.addChild(autodetect);
>                 effCfg = c;
>             }
> {code}
> Unfortunately {{c.addChild(fonts)}} copies element {{fonts}} into configuration {{c}}. When {{fonts.addChild(autodetect)}} is called it has no effect on the resulting configuration {{c}} any more. To fix the bug {{fonts.addChild(autodetect)}} should be called before {{c.addChild(fonts)}}
> This logic worked in fop version 2.2 using another implementation of configuration, but now it doesn't.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.