docbkx-fop-support not generating font metrics file

87 views
Skip to first unread message

Ringo De Smet

unread,
Apr 25, 2010, 9:22:30 AM4/25/10
to docbkx-to...@googlegroups.com
Hello,

I am trying to add an additional font to my setup. Based on example 12
in the usage guide, I configured my POM to generate the font-metrics
file for the font. I am testing this with my system Verdana font,
which I copied over to ${basedir}/src/fonts. Running the maven
generate-resources phase, I get a successful build, but no metrics
file. I tested this with docbkx-fop-support 2.0.9 and 2.0.10 without
success.

Below you can see the output I get on the console while running with --debug:

[DEBUG] Configuring mojo
'com.agilejava.docbkx:docbkx-fop-support:2.0.9:generate' -->
[DEBUG] (f) ansi = true
[DEBUG] (f) sourceDirectory = /Users/ringods/Documents/VUB/Master in
Bedrijfskunde/Thesis/DocBook/src/fonts
[DEBUG] (f) targetDirectory = /Users/ringods/Documents/VUB/Master in
Bedrijfskunde/Thesis/DocBook/target/fonts
[DEBUG] -- end configuration --
[INFO] [docbkx-fop-support:generate {execution: default}]
[DEBUG] Patterns [*.pfm, *.PFM, *.ttf, *.TTF]
[DEBUG] Found Verdana.ttf
[DEBUG] Found 1 font files in total.
TTF Reader for Apache FOP 0.95

java org.apache.fop.fonts.apps.TTFReader [options] fontfile.ttf xmlfile.xml

where options can be:
-d Debug mode
-q Quiet mode
-enc ansi
With this option you create a WinAnsi encoded font.
The default is to create a CID keyed font.
If you're not going to use characters outside the
pdfencoding range (almost the same as iso-8889-1)
you can add this option.
-ttcname <fontname>
If you're reading data from a TrueType Collection
(.ttc file) you must specify which font from the
collection you will read metrics from. If you read
from a .ttc file without this option, the fontnames
will be listed for you.
-fn <fontname>
default is to use the fontname in the .ttf file, but
you can override that name to make sure that the
embedded font is used (if you're embedding fonts)
instead of installed fonts when viewing documents
with Acrobat Reader.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Sun Apr 25 15:20:51 CEST 2010
[INFO] Final Memory: 23M/80M
[INFO] ------------------------------------------------------------------------


Any input appreciated!

Ringo

--
You received this message because you are subscribed to the Google Groups "Docbkx Tools Users" group.
To post to this group, send email to docbkx-to...@googlegroups.com.
To unsubscribe from this group, send email to docbkx-tools-us...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/docbkx-tools-users?hl=en.

Ringo De Smet

unread,
May 3, 2010, 8:32:28 AM5/3/10
to docbkx-to...@googlegroups.com
No one?

Mimil Mimil

unread,
May 4, 2010, 3:52:42 PM5/4/10
to docbkx-to...@googlegroups.com
Hi Ringo,

I am really sorry but I have no time right now because of the daily office task. If you feel that we have a bug in here please fill an issue on googlecode that way we will not forget it.

See you later,
Cedric,

mimi...@gmail.com

unread,
May 27, 2010, 9:19:35 AM5/27/10
to Docbkx Tools Users
Hi,

I tried (on SVN version but we didn't change anything since the
feature introduction) with verdana font from my windows XP and it is
working as expected, here is my configuration:

<configuration>
<bodyFontFamily>Verdana</bodyFontFamily>
<fonts>
<font>
<name>Verdana</name>
<style>normal</style>
<weight>normal</weight>
<embedFile>${basedir}/src/fonts/verdana.ttf</
embedFile>
<metricsFile>${basedir}/target/fonts/Verdana-
metrics.xml</metricsFile>
</font>
</fonts>
</configuration>

Could you post your pom file that we can check what is going wrong.

Regards,
Cedric,

On 4 mai, 21:52, Mimil Mimil <mimilo...@gmail.com> wrote:
> Hi Ringo,
>
> I am really sorry but I have no time right now because of the daily office
> task. If you feel that we have a bug in here please fill an issue on
> googlecode that way we will not forget it.
>
> See you later,
> Cedric,
>

> On Mon, May 3, 2010 at 2:32 PM, Ringo De Smet <ringo.des...@gmail.com>wrote:
>
>
>
>
>
> > No one?
>

> > docbkx-tools-us...@googlegroups.com<docbkx-tools-users%2Bunsubs cr...@googlegroups.com>

Ringo De Smet

unread,
Jul 12, 2010, 10:29:40 AM7/12/10
to docbkx-to...@googlegroups.com
Hello Cedric,

The DocBook work was put aside for a while due to higher priorities,
but I am starting on it again.

On 27 May 2010 15:19, Mimi...@gmail.com <mimi...@gmail.com> wrote:
>
> Could you post your pom file that we can check what is going wrong.
>

http://gist.github.com/472526

Both the pom.xml and the debug build output can be found there. Only
the scm section has been snipped from the POM.

In short, I configured the project to generate metrics files for all
the fonts installed on my Mac (/Library/Fonts), but no metrics files
end up in ${basedir}/target/fonts.

Ringo

Mimil Mimil

unread,
Aug 11, 2010, 11:10:32 AM8/11/10
to docbkx-to...@googlegroups.com
Hi,

okay I found, it was easy (sorry for the long delay replies)
The problem is just the space caracters in font names and in your working directory, the fault is on our side.


Regards,
Cédric,


Ringo

--
You received this message because you are subscribed to the Google Groups "Docbkx Tools Users" group.
To post to this group, send email to docbkx-to...@googlegroups.com.

Ringo De Smet

unread,
Aug 12, 2010, 3:26:55 AM8/12/10
to docbkx-to...@googlegroups.com
Cédric,

On 11 August 2010 17:10, Mimil Mimil <mimi...@gmail.com> wrote:
> Hi,
> okay I found, it was easy (sorry for the long delay replies)
> The problem is just the space caracters in font names and in your working
> directory, the fault is on our side.
> I created an
> issue: http://code.google.com/p/docbkx-tools/issues/detail?id=54

OK, tnx for the investigation. I will try and remove the spaces in the
folder name as a workaround and let you know the outcome.

Ringo

Mimil Mimil

unread,
Aug 12, 2010, 3:50:46 AM8/12/10
to docbkx-to...@googlegroups.com
I have commited the patch (so you can use the SVN) but it seems that there is another issue on some font causing an unexpected EOF on Mac OS.

Cédric,


Ringo

Reply all
Reply to author
Forward
0 new messages