Welblaud
2017-02-21 12:49:42 UTC
Hi all,
I am in a stage of testing the new 3.0 stable release before full move to it
from 3.0RC1.
One of the most disturbing problems is the one associated with resolving
paths to fonts from inside the app.
I have found (thanks to Joe!) a couple of very useful hints (like this one
<http://gitlab.exist-db.org/tei-publisher/tei-publisher-app/blob/master/modules/config.xqm#L89-93>
) but another error is thrown. Since the beginning, the app was complaining
about /URI scheme is not "file"/, which I solved with /file:/ prefix in
FOP's config (/embed-url="file:{$something}/arial.ttf"/).
However, now it throws /URI is not hierarchical/ and I am not able to solve
that just with playing with file locations.
I tried to set the base for fonts:
/exist://localhost:8083/exist/apps/my-app/modules/resources/fonts/microsoft//
or
/http://xx.xx.xx.xx:8083/exist/apps/my-app/modules/resources/fonts/microsoft//
Nothing worked. Fonts are perfectly reachable over HTTP.
let $font-base :=
'exist://localhost:8083/exist/apps/my-app/modules/resources/fonts/microsoft/'
let $hyph-base :=
'exist://localhost:8083/exist/apps/my-app/modules/resources/hyph/'
FOP config sample:
<fop version="1.0">
<strict-configuration>true</strict-configuration>
<strict-validation>false</strict-validation>
<hyphenation-base>{$hyph-base}</hyphenation-base>
<font-base>{$font-base}</font-base>
<use-cache>false</use-cache>
<renderers>
<renderer mime="application/pdf">
{
switch ($layout)
case 'auc-geographica' return $microsoftFonts
default return ()
}
</renderer>
</renderers>
</fop>
Greetings from Prague,
Honza Hejzl
--
View this message in context: http://exist.2174344.n4.nabble.com/FOP-fonts-configuration-in-3-0-stable-tp4671447.html
Sent from the exist-open mailing list archive at Nabble.com.
I am in a stage of testing the new 3.0 stable release before full move to it
from 3.0RC1.
One of the most disturbing problems is the one associated with resolving
paths to fonts from inside the app.
I have found (thanks to Joe!) a couple of very useful hints (like this one
<http://gitlab.exist-db.org/tei-publisher/tei-publisher-app/blob/master/modules/config.xqm#L89-93>
) but another error is thrown. Since the beginning, the app was complaining
about /URI scheme is not "file"/, which I solved with /file:/ prefix in
FOP's config (/embed-url="file:{$something}/arial.ttf"/).
However, now it throws /URI is not hierarchical/ and I am not able to solve
that just with playing with file locations.
I tried to set the base for fonts:
/exist://localhost:8083/exist/apps/my-app/modules/resources/fonts/microsoft//
or
/http://xx.xx.xx.xx:8083/exist/apps/my-app/modules/resources/fonts/microsoft//
Nothing worked. Fonts are perfectly reachable over HTTP.
let $font-base :=
'exist://localhost:8083/exist/apps/my-app/modules/resources/fonts/microsoft/'
let $hyph-base :=
'exist://localhost:8083/exist/apps/my-app/modules/resources/hyph/'
FOP config sample:
<fop version="1.0">
<strict-configuration>true</strict-configuration>
<strict-validation>false</strict-validation>
<hyphenation-base>{$hyph-base}</hyphenation-base>
<font-base>{$font-base}</font-base>
<use-cache>false</use-cache>
<renderers>
<renderer mime="application/pdf">
{
switch ($layout)
case 'auc-geographica' return $microsoftFonts
default return ()
}
</renderer>
</renderers>
</fop>
Greetings from Prague,
Honza Hejzl
--
View this message in context: http://exist.2174344.n4.nabble.com/FOP-fonts-configuration-in-3-0-stable-tp4671447.html
Sent from the exist-open mailing list archive at Nabble.com.