You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/06/27 11:51:18 UTC

DO NOT REPLY [Bug 45296] New: Bug in Os2Table

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

           Summary: Bug in Os2Table
           Product: Batik
           Version: 2.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Utilities
        AssignedTo: batik-dev@xmlgraphics.apache.org
        ReportedBy: ludovic.lhours@gmail.com


Hi,

the utility program ttf2svg crashes when converting fonts from Font Freak
(ie http://www.fontfreak.com/fonts/a/Anagram.zip). It seems that during the
decoding step of the Os2 table that some fields are optionals and depend on the
version of the table (I took the information from FreeType2 web site
http://freetype.sourceforge.net/freetype2/docs/reference/ft2-truetype_tables.html#TT_OS2)

I attached a patch which take care of the version of the table.

I used version 1.8pre but the bug is also present in SVN.


Regards,

Ludovic


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 45296] Bug in Os2Table

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


Helder Magalhães <he...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable




--- Comment #2 from Helder Magalhães <he...@gmail.com>  2008-11-21 09:36:08 PST ---
I've analyzed the patch and, from the link [1], the only things that is not
clear to me is if versions are backwards compatible, that is, if a version 2
font includes all version 1 information. The documentation says "only version X
tables", something which confuses (me) a bit.

So, my doubt is if:
+        if (version >= 1) {
Should be:
+        if (version == 1) {

Naturally, the same poses for the version 2 check. Apart from this, this seems
good to me. A (commented) link to the documentation within the patch would also
sound reasonable to further support the version-specific handling. :-)

[1]
http://freetype.sourceforge.net/freetype2/docs/reference/ft2-truetype_tables.html#TT_OS2


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 45296] [PATCH] Bug in Os2Table

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


Helder Magalhães <he...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Bug in Os2Table             |[PATCH] Bug in Os2Table




--- Comment #4 from Helder Magalhães <he...@gmail.com>  2009-03-23 11:36:59 PST ---
Adding the "[PATCH] " prefix to the summary for coherency with other bugs with
patches available (although the "PatchAvailable" keyword can also be used, so
this is somehow redundant).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 45296] Bug in Os2Table

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





--- Comment #3 from Ludovic L'Hours <lu...@gmail.com>  2008-11-21 11:09:57 PST ---
I found a more complete (and more official?) documentation than the FreeType
one. From [1], all 4 versions of the OS/2 table are presented and they are all
backward compatible. The patch could also include the extra fields in to
support version 2
and 3.

[1] http://www.microsoft.com/typography/OTSpec/os2.htm


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


DO NOT REPLY [Bug 45296] Bug in Os2Table

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





--- Comment #1 from Ludovic L'Hours <lu...@gmail.com>  2008-06-27 02:53:19 PST ---
Created an attachment (id=22187)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22187)
Patch of OS2 Font Table


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org