You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2012/11/09 10:41:17 UTC

[Bug 54122] New: Wrong/missing libs filenames mentioned in "TrueType Font Metrics" section of docs

https://issues.apache.org/bugzilla/show_bug.cgi?id=54122

          Priority: P2
            Bug ID: 54122
          Assignee: fop-dev@xmlgraphics.apache.org
           Summary: Wrong/missing libs filenames mentioned in "TrueType
                    Font Metrics" section of docs
          Severity: minor
    Classification: Unclassified
                OS: Windows XP
          Reporter: eduard.tibet@gmail.com
          Hardware: PC
            Status: NEW
           Version: 1.1
         Component: documentation
           Product: Fop

Source page/section:
http://xmlgraphics.apache.org/fop/1.1/fonts.html#truetype-metrics .
Bugs|errors:
1. Wrong libs filenames mentioned in the creating metrics files command
(version of libs that are part of the libs filenames are missing).
2. One lib filename completely missing (xmlgraphics-commons-1.5.jar).

Now available:
java -cp
build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar
org.apache.fop.fonts.apps.TTFReader [options] C:\myfonts\cmr10.ttf ttfcm.xml

How expected:
java -cp
build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar;lib\commons-logging-1.0.4.jar;lib\xmlgraphics-commons-1.5.jar
org.apache.fop.fonts.apps.TTFReader [options] C:\myfonts\cmr10.ttf ttfcm.xml

Notes:
1. Docs for other version fop may contain the same error - wasn't checked.
2. The same error seem to be in section
http://xmlgraphics.apache.org/fop/1.1/fonts.html#type1-metrics but command
wasn't checked because of absence of Type 1 fonts.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54122] Wrong/missing libs filenames mentioned in "TrueType Font Metrics" section of docs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54122

--- Comment #4 from Eduard Tibet <ed...@gmail.com> ---
(In reply to comment #3)
> Hi Edward,
> 
> Thanks for your response. You don't need to create metric files to register
> the fonts manually in the fop.xconf file. The fonts topic definitely needs
> work as it does appear to imply the metrics generation step is necessary,
> but if you read [1] You will see the following note stating metrics files
> are not needed:
> 
> •The "metrics-url" attribute is generally not necessary except if you run
> into problems with certain fonts.
> 
> Thanks,
> 
> Chris
> 
> [1] http://xmlgraphics.apache.org/fop/1.1/fonts.html#register

Yes, you are right, but I also talked about these notes:

"Font registration via XML font metrics file is still supported and may still
be necessary for _some very special cases_ as fallback variant while we
stabilize font auto-detection." [1]

and

"The "metrics-url" attribute is generally not necessary _except if you run into
problems_ with certain fonts." [2]

Nobody knows where the problems appears. But, anyway, my opinion is only FOP
user opinion. You, as a FOP dev, certainly know more about FOP architecture.

[1] http://xmlgraphics.apache.org/fop/1.1/fonts.html#custom
[2] http://xmlgraphics.apache.org/fop/1.1/fonts.html#register

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54122] Wrong/missing libs filenames mentioned in "TrueType Font Metrics" section of docs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54122

Chris Bowditch <bo...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Chris Bowditch <bo...@hotmail.com> ---
I've had a go at re-organizing and re-wording the font topic on the new website
that you can see here: http://xmlgraphics.staging.apache.org/fop/1.1/fonts.html

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54122] Wrong/missing libs filenames mentioned in "TrueType Font Metrics" section of docs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54122

--- Comment #1 from Chris Bowditch <bo...@hotmail.com> ---
I think we should probably remove (instead of repairing as suggested) the
section that talks about metric generation as that was deprecated since v0.95.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54122] Wrong/missing libs filenames mentioned in "TrueType Font Metrics" section of docs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54122

--- Comment #5 from Chris Bowditch <bo...@hotmail.com> ---
I am aware of those notes. I agree this page needs updating but we are about to
switch to a new website, so I will probably update the page in the new website
or wait until we switch before addressing this. Basically the special use cases
are diminished in the latest versions of FOP. I believe the use case the author
had in mind was related to single byte encoding but that too is now possible
without creating the metrics files. The only other possible use case for metric
files is as a means to modify the metrics extracted in case the original font
contains errors, but that use case is very unlikely. I will bear that in mind
when I come to rewrite the help topic.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54122] Wrong/missing libs filenames mentioned in "TrueType Font Metrics" section of docs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54122

Eduard Tibet <ed...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eduard.tibet@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54122] Wrong/missing libs filenames mentioned in "TrueType Font Metrics" section of docs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54122

--- Comment #3 from Chris Bowditch <bo...@hotmail.com> ---
Hi Edward,

Thanks for your response. You don't need to create metric files to register the
fonts manually in the fop.xconf file. The fonts topic definitely needs work as
it does appear to imply the metrics generation step is necessary, but if you
read [1] You will see the following note stating metrics files are not needed:

•The "metrics-url" attribute is generally not necessary except if you run into
problems with certain fonts.

Thanks,

Chris

[1] http://xmlgraphics.apache.org/fop/1.1/fonts.html#register

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54122] Wrong/missing libs filenames mentioned in "TrueType Font Metrics" section of docs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54122

--- Comment #2 from Eduard Tibet <ed...@gmail.com> ---
(In reply to comment #1)
> I think we should probably remove (instead of repairing as suggested) the
> section that talks about metric generation as that was deprecated since
> v0.95.

2Chris: Maybe I don't fully understand the metrics files generation feature. If
I'm wrong in some point, let me know this point.

IMHO removing this feature would be not a good solution. The fonts auto
discover works well, but it really used in small desktop or special configured
environments. If someone had very strict fonts requirement based on license
agreements, external despondencies, etc., he really need this feature.

I.e. in my own environment the fonts/metrics are hardly linked to glyphs (fonts
files) and metrics using config file. I'll never be use autodiscover, because
it leads to unpredictable results on final output.

-- 
You are receiving this mail because:
You are the assignee for the bug.