Bug 17828 - Encoding problem with Type 1 fonts
Summary: Encoding problem with Type 1 fonts
Status: CLOSED LATER
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.4
Hardware: PC All
: P3 blocker
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-10 14:26 UTC by Roman Janatka
Modified: 2012-04-01 13:51 UTC (History)
0 users



Attachments
Includes userconfig, sample FO and font (73.42 KB, application/octet-stream)
2003-03-10 15:17 UTC, Roman Janatka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Janatka 2003-03-10 14:26:47 UTC
I'm using Type 1 central european fonts with 256 characters with WinAnsi 
encoding. I have correctly embedded current Type 1 fonts in my output pdf file, 
but all of characters which has in UTF-8 encoding code gather then 255 are 
missing in my pdf (replaced by '#'). Other characters are correctly maped to 
the target WinAnsi encoding. 

Is there problem in FOP with WinAnsi encoding using in the Type 1 fonts?
Comment 1 J.Pietschmann 2003-03-10 14:37:55 UTC
I suspect this is the FAQ "Some characters are not displayed, or displayed
incorrectly, or displayed as '#'", see
http://xml.apache.org/fop/faq.html#faq-N10402

Please supply a small self-contained FO file demonstrating the problem if
you think otherwise.
Comment 2 Roman Janatka 2003-03-10 15:17:19 UTC
Created attachment 5246 [details]
Includes userconfig, sample FO and font
Comment 3 Roman Janatka 2003-03-10 15:51:51 UTC
When I'm using True Type fonts everything is OK. Problem is only with Type 1. I 
had spent a long time with reading bugs and documentation (also FAQ) and 
testing, then I wrote this bug. Certainly I have tested replacing characters 
with entities (Č for example), but i think, that parsing a and stream 
interpretation is OK, because there is no problem with True Type fonts and also 
with Type 1 fonts are national charakters well maped from UTF-8 to WinAnsi and 
and embedded font is used, only (as I wrote) only chracters that are multibyte 
in UTF-8 are missing (It is no odds which encoding is input stream).
Comment 4 Roman Janatka 2003-03-10 16:24:38 UTC
I forgot reopen bug.
Comment 5 Roman Janatka 2003-03-21 15:59:48 UTC
So FOP don't respect encoding in embedded fonts. When True Type is user there 
is no problem because True Type is UTF, but when you have Type 1 fonts with 
another encoding then WinAnsi, you will fail. I rewrote some classes and 
regenerate CodePointMapping class with new encoding and now there is no problem 
for using any Type 1 with my encodings.
Comment 6 Glenn Adams 2012-04-01 13:51:39 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs