Re: Fop AFP / How to embed Verdana font in afp file ?

2012-07-03 Thread Alexios Giotis

On Jul 3, 2012, at 11:30 AM, Christian Pestel wrote:

> Thank a lot Alexios.
> That's work.
> 
> Still 2 questions...
> 
> 1/ With Type Transformer, do I select "icon 3 - Characters filters" or not ?
I left the 'character filters' empty but this might not always be correct. For 
example, when Type Transformer needs to select a subset for creating single 
byte coded fonts (SBCS), the character filters or the code page could help.

> 
> 2/ With my AFP sample file produced by Fop,
> 
> - Compart Viewer display 'HELLO' correctly (Aladen font)
> - BTB display nothing
> - AFPviewer display 'HELLO' incorrectly (in raster Times).
> 
> Why theses differences ? maybe BTB or AFPviewer are not able to display 
> emebeded outline font ?

I also noticed this when I created the AFP. My experience is that Compart has 
the most reliable viewer. I can't give a definite answer without investigating 
but at the end, it does not worth it. It is a common knowledge and at the same 
time annoying, that every AFP system, including viewers & printers is 
different, renders differently and has limitations. In a few cases this is due 
to a not well defined spec (GOCA), in some other cases this is due to the 
implementations. It's a niche area. The general advise is to try to open the 
AFP files with all available viewers. If you see what you expect, then it 
*could* be OK. But unfortunately, you will finally need to print it to ensure 
it's OK. Keep in mind that depending on your use case and volumes, you might 
need to do some performance tests too. For example, can a continuous feed 
printer sustain a speed of 100 meters per minute ? Finally, there are printer 
specific, commercial tools which you could buy to reliably view the AFP. The 
idea is that they execute the same code as the printer, an example is OCE 
TrueProof.


I don't think I can help you much more, I wish you good luck :)

Alexios Giotis


> 
> Thank for your reply.
> 
> Christian Pestel
> 
> christian.pes...@orange.fr
> 
> 
> -Message d'origine- From: Alexios Giotis
> Sent: Monday, July 02, 2012 10:44 PM
> To: Christian Pestel
> Cc: fop-users@xmlgraphics.apache.org
> Subject: [?? Probable Spam] Re: Fop AFP / How to embed Verdana font in afp 
> file ?
> 
> Hi Christian,
> 
> The code page file is indeed required. Attached you will find T1U01253 which 
> I used and corresponds to encoding="cp1253" (modern Greek). I got it along 
> with some other code page files when I asked to convert some TrueType fonts 
> to AFP fonts. As far as I know, the code page files are standard and you will 
> need a different code page for French. If I remember well, the Type 1 font I 
> used did not contain any Greek glyphs, it works because the XSL:FO just 
> prints HELLO. Other ways of getting code page files are:
> - Directly downloading from a mainframe.
> - Generating with a commercial tool.
> - Extracting from the resource group of an AFP file that contains them. You 
> will need a basic understanding of the AFP structure and about 200 lines of 
> Java code. MO:DCA (The Mixed Object Document Content Architecture Reference) 
> [1] will be your friend.
> 
> Finally, you will need to remove the .OLN extension from CZA585.OLN.
> 
> HTH,
> Alexios Giotis
> 
> [1] http://www.afpcinc.org/publications/categories/publications/
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: [?? Probable Spam] Re: Fop AFP / How to embed Verdana font in afp file ?

2012-07-03 Thread Christian Pestel

Thank a lot Alexios.
That's work.

Still 2 questions...

1/ With Type Transformer, do I select "icon 3 - Characters filters" or not ?

2/ With my AFP sample file produced by Fop,

- Compart Viewer display 'HELLO' correctly (Aladen font)
- BTB display nothing
- AFPviewer display 'HELLO' incorrectly (in raster Times).

Why theses differences ? maybe BTB or AFPviewer are not able to display 
emebeded outline font ?


Thank for your reply.

Christian Pestel

christian.pes...@orange.fr


-Message d'origine- 
From: Alexios Giotis

Sent: Monday, July 02, 2012 10:44 PM
To: Christian Pestel
Cc: fop-users@xmlgraphics.apache.org
Subject: [?? Probable Spam] Re: Fop AFP / How to embed Verdana font in afp 
file ?


Hi Christian,

The code page file is indeed required. Attached you will find T1U01253 which 
I used and corresponds to encoding="cp1253" (modern Greek). I got it along 
with some other code page files when I asked to convert some TrueType fonts 
to AFP fonts. As far as I know, the code page files are standard and you 
will need a different code page for French. If I remember well, the Type 1 
font I used did not contain any Greek glyphs, it works because the XSL:FO 
just prints HELLO. Other ways of getting code page files are:

- Directly downloading from a mainframe.
- Generating with a commercial tool.
- Extracting from the resource group of an AFP file that contains them. You 
will need a basic understanding of the AFP structure and about 200 lines of 
Java code. MO:DCA (The Mixed Object Document Content Architecture Reference) 
[1] will be your friend.


Finally, you will need to remove the .OLN extension from CZA585.OLN.

HTH,
Alexios Giotis

[1] http://www.afpcinc.org/publications/categories/publications/


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Fop AFP / How to embed Verdana font in afp file ?

2012-07-02 Thread Christian Pestel

Hi Alexios,

Thank a lot for  the time you spent for me; your explanations are really 
clear.


I try to convert with TypeTransformer 3.3, your Type 1 font (Alanden_.pfb) 
to an Afp Outline font (CZA585.OLN).

I have not selected code page file in Step3-Character Filters.
and thus, I have this error during Fop process : GRAVE: The code page for an 
AFP font cannot be found. Reason: java.io.FileNotFoundException: Resource 
not found: T1U01253


How to create codepage file T1U01253  ?
Is it possible you send me your file ?

Thank in advance.

Christian Pestel

christian.pes...@orange.fr


-Message d'origine- 
From: Alexios Giotis

Sent: Monday, July 02, 2012 6:18 PM
To: fop-users
Subject: Re: Fop AFP / How to embed Verdana font in afp file ?

Hi Christian,

I tried to execute FOP using the attached input & configuration file from 
Java IDE (embedded, see [1]) but it was throwing an exception because the 
code page file "T1V10500" is missing. I changed the configuration to use 
another code page file that I had and an AFP file was produced. The font and 
the codepage were embedded in the AFP file. I used the free afpexplorer to 
verify this, [2]. Still, I could not open it with any AFP viewer. It seems 
that there was a problem with the embedded AFP font that IBM Type 
Transformer created. Additionally raster fonts are quite old and AFP experts 
recommend the usage of AFP outline fonts. Type Transformer seems to give the 
option to create AFP outline fonts, only from Type 1 fonts. So, I downloaded 
the first freely available Type 1 font that google found [3], changed the 
FOP config to



path="/Users/alex/Workspace/desk/afpVerdanaTest" 
characterset="CZA282  ">

 
 
 


and created the attached AFP file. The name "Verdana" is now misleading but 
I did not want to touch the input XSL:FO. In this AFP file, the outline font 
is embedded and I can successfully view it with Compart's DocBridge View - I 
noticed the file name test.Compart.afp in your zip and I guess you might 
have this viewer. To conclude, TypeTransformer seems to me useful for 
converting Type 1 fonts to AFP outline fonts. If you have a TTF input file, 
you may transform it to Type 1 first (e.g. see [4]) and then to AFP outline. 
Alternatively, you can buy one of the commercial (and expensive) 
applications (isis-papyrus is one example). In that case, there are some 
less expensive options like buying an older and unsupported second hand 
license of such a tool or outsourcing the font conversion to a company or 
AFP consultant that has a license for such tools. Note that I am not an AFP 
consultant and I don't own such tools. For me, the Type 1 format is not far 
away from the AFP outline format and although I have only barely touched 
this area, it could be an interesting open source project.


[1] http://xmlgraphics.apache.org/fop/1.0/embedding.html
[2] http://www.compulsivecode.com/Project_AFPexplorer.aspx
[3] http://www.sketchpad.net/fonts/alanden-t1.zip
[4] http://fontforge.sourceforge.net/


Alexios Giotis










On Jun 29, 2012, at 6:18 PM, Alexios Giotis wrote:


Hi Christian,

Don't worry about the zip attachment, it exists and contains the 
information needed. If you are sending this directly to my email, then 
maybe gmail is filtering it. I don't have time to look at this today,  but 
in the past I have successfully created AFP files with embedded both 
raster & outline AFP fonts. IBM type transformer has some limitations and 
is not working for all TrueType fonts. In the meanwhile, somebody else 
might have a look.


Alexios



On Jun 29, 2012, at 5:46 PM, Christian Pestel wrote:


Hi Alexios,

still pb with Symantec Mail Security detected prohibited content in a 
message sent from your address


I rename it Fo2AFP_Verdana.bat => Fo2AFP_Verdana_CommandFile.txt
and  C0A484B0 => C0A484B0.txt


Christian Pestel

christian.pes...@orange.fr


-Message d'origine- From: Christian Pestel
Sent: Friday, June 29, 2012 3:04 PM
To: fop-users
Subject: Fop AFP / How to embed Verdana font in afp file ?

Hi Alexios,

may be some pb to send you a zip file with .bat file inside.
I rename it Fo2AFP_Verdana_bat.txt

Christian Pestel

christian.pes...@orange.fr


-Message d'origine- From: Christian Pestel
Sent: Friday, June 29, 2012 2:40 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Fop AFP / How to embed Verdana font in afp file ?

Hi Alexios,

The file name is correct but this doesn't work.
send you the zip file.



Christian Pestel

christian.pes...@orange.fr


-Message d'origine- From: Alexios Giotis
Sent: Friday, June 29, 2012 11:50 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Fop AFP / How to embed Verdana font in afp file ?

Hi Christian,

If the file name is C0A484B0.240, try renaming this to C0A484B0. If this
does not work, post a small, self contai

Re: Fop AFP / How to embed Verdana font in afp file ?

2012-06-29 Thread Alexios Giotis
Hi Christian,

Don't worry about the zip attachment, it exists and contains the information 
needed. If you are sending this directly to my email, then maybe gmail is 
filtering it. I don't have time to look at this today,  but in the past I have 
successfully created AFP files with embedded both raster & outline AFP fonts. 
IBM type transformer has some limitations and is not working for all TrueType 
fonts. In the meanwhile, somebody else might have a look.

Alexios



On Jun 29, 2012, at 5:46 PM, Christian Pestel wrote:

> Hi Alexios,
> 
> still pb with Symantec Mail Security detected prohibited content in a message 
> sent from your address
> 
> I rename it Fo2AFP_Verdana.bat => Fo2AFP_Verdana_CommandFile.txt
> and  C0A484B0 => C0A484B0.txt
> 
> 
> Christian Pestel
> 
> christian.pes...@orange.fr
> 
> 
> -Message d'origine- From: Christian Pestel
> Sent: Friday, June 29, 2012 3:04 PM
> To: fop-users
> Subject: Fop AFP / How to embed Verdana font in afp file ?
> 
> Hi Alexios,
> 
> may be some pb to send you a zip file with .bat file inside.
> I rename it Fo2AFP_Verdana_bat.txt
> 
> Christian Pestel
> 
> christian.pes...@orange.fr
> 
> 
> -Message d'origine----- From: Christian Pestel
> Sent: Friday, June 29, 2012 2:40 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Fop AFP / How to embed Verdana font in afp file ?
> 
> Hi Alexios,
> 
> The file name is correct but this doesn't work.
> send you the zip file.
> 
> 
> 
> Christian Pestel
> 
> christian.pes...@orange.fr
> 
> 
> -----Message d'origine- From: Alexios Giotis
> Sent: Friday, June 29, 2012 11:50 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: Fop AFP / How to embed Verdana font in afp file ?
> 
> Hi Christian,
> 
> If the file name is C0A484B0.240, try renaming this to C0A484B0. If this
> does not work, post a small, self contained example (XSL:FO, raster font,
> fop config).
> 
> Alexios
> 
> On Jun 28, 2012, at 5:37 PM, Christian Pestel wrote:
> 
>> Thank you Alexios for your help,
>> 
>> I download TypeTransformer [
>> http://www-01.ibm.com/support/docview.wss?uid=psd1P4000840 ] on my
>> Windows7 workstation, no problem to install and run it.
>> I try to create Verdana Afp font from Verdana windows TTF
>> 
>> First, I want to select Windows font directory to browse ttf files.
>> TypeTransformer exclude Windows\Fonts directory from directories selection
>> !?
>> I copy the 4 Verdana ttf files in another directory , and thats's work.
>> 
>> Second, I select in TypeTransformer
>> icon 1 - TypeFaces
>> icon 2 - Point sizes
>> icon 3 - Characters filters
>> Button codepage : nothing to select.
>> Button character list : I select LATIN.CLS
>> icon 4 - Start job
>>   Some character are not 
>>   I selected YES
>> 
>> 28/06/2012 16:17:59 DUV0018: Transformation of job JOB1 has started.
>> 28/06/2012 16:17:59 DUV0001: Transformation of font Verdana (font
>> character set C0A484B0, point size 12.0, resolution 240) has started.
>> 28/06/2012 16:17:59 DUV0015: Transformation of font character set C0A484B0
>> has ended.
>> 28/06/2012 16:17:59 DUV0458: The record length for this character set is:
>> 10536.
>> 28/06/2012 16:17:59 DUV0122: Transformation of 122 job JOB1 has
>> successfully completed.
>> 
>> I obtain a raster Afp file C0A484B0.240 (46 Ko) for Verdana raster Normal
>> 12 pt
>> 
>> In my fop.conf USERCONFIG.xml
>> I add :
>> 
>> 
>>
>>    > base-uri="D:/__Projets/NewProjets/BdocSuite_510/FopAFP/VerdanaFont/AfpFont">
>>
>>
>>
>>
>> 
>> I run fop an I obtain the same Afp file without embeded font.
>> What's wrong ?
>> 
>> Christian Pestel
>> 
>> christian.pes...@orange.fr
>> 
>> 
>> -Message d'origine- From: Alexios Giotis
>> Sent: Thursday, June 28, 2012 3:16 PM
>> To: Christian Pestel
>> Cc: fop-users
>> Subject: Re: Fop AFP / How to embed Verdana font in afp file ?
>> 
>> Try to use the free IBM Type Transformer for Windows [1] to transform a
>> TrueType font to an AFP raster or outline font. You might find some other
>> AFP tools at [2].
>> 
>> [1] http://www-01.ibm.com/support/docview.wss?uid=psd1P4000840
>> [2] http://wiki.apache.org/xmlgraphics-fop/AFPResources
>> 
>> Alexios Giotis
>> 
>> 
>> On Jun 28, 2012, at 3:52 PM, Christian Pestel wrote:
>> 
>>> Hi

Re: Fop AFP / How to embed Verdana font in afp file ?

2012-06-29 Thread Alexios Giotis
Hi Christian,

If the file name is C0A484B0.240, try renaming this to C0A484B0. If this does 
not work, post a small, self contained example (XSL:FO, raster font, fop 
config).

Alexios

On Jun 28, 2012, at 5:37 PM, Christian Pestel wrote:

> Thank you Alexios for your help,
> 
> I download TypeTransformer [ 
> http://www-01.ibm.com/support/docview.wss?uid=psd1P4000840 ] on my Windows7 
> workstation, no problem to install and run it.
> I try to create Verdana Afp font from Verdana windows TTF
> 
> First, I want to select Windows font directory to browse ttf files.
> TypeTransformer exclude Windows\Fonts directory from directories selection !?
> I copy the 4 Verdana ttf files in another directory , and thats's work.
> 
> Second, I select in TypeTransformer
> icon 1 - TypeFaces
> icon 2 - Point sizes
> icon 3 - Characters filters
>  Button codepage : nothing to select.
>  Button character list : I select LATIN.CLS
> icon 4 - Start job
>Some character are not 
>I selected YES
> 
> 28/06/2012 16:17:59 DUV0018: Transformation of job JOB1 has started.
> 28/06/2012 16:17:59 DUV0001: Transformation of font Verdana (font character 
> set C0A484B0, point size 12.0, resolution 240) has started.
> 28/06/2012 16:17:59 DUV0015: Transformation of font character set C0A484B0 
> has ended.
> 28/06/2012 16:17:59 DUV0458: The record length for this character set is: 
> 10536.
> 28/06/2012 16:17:59 DUV0122: Transformation of 122 job JOB1 has successfully 
> completed.
> 
> I obtain a raster Afp file C0A484B0.240 (46 Ko) for Verdana raster Normal 12 
> pt
> 
> In my fop.conf USERCONFIG.xml
> I add :
> 
> 
> 
>  base-uri="D:/__Projets/NewProjets/BdocSuite_510/FopAFP/VerdanaFont/AfpFont">
> 
> 
> 
> 
> 
> I run fop an I obtain the same Afp file without embeded font.
> What's wrong ?
> 
> Christian Pestel
> 
> christian.pes...@orange.fr
> 
> 
> -Message d'origine- From: Alexios Giotis
> Sent: Thursday, June 28, 2012 3:16 PM
> To: Christian Pestel
> Cc: fop-users
> Subject: Re: Fop AFP / How to embed Verdana font in afp file ?
> 
> Try to use the free IBM Type Transformer for Windows [1] to transform a 
> TrueType font to an AFP raster or outline font. You might find some other AFP 
> tools at [2].
> 
> [1] http://www-01.ibm.com/support/docview.wss?uid=psd1P4000840
> [2] http://wiki.apache.org/xmlgraphics-fop/AFPResources
> 
> Alexios Giotis
> 
> 
> On Jun 28, 2012, at 3:52 PM, Christian Pestel wrote:
> 
>> Hi,
>> 
>> I would like to embed Verdana font in my AFP file. How to do that  ?
>> I have Windows Verdana TrueType font installed on my workstation.
>> 
>> Is there a Fop tool to convert Verdana TrueType to Verdana AFP raster or 
>> outline ?
>> or do you know an openSource converter ?
>> or do I need to sell AFP Verdana raster font or AFP Verdana outline font 
>> from IBM or Terrapin or else ?
>> 
>> Thank for your help.
>> 
>> 
>> Christian Pestel
>> christian.pes...@orange.fr
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Fop AFP / How to embed Verdana font in afp file ?

2012-06-28 Thread Alexios Giotis
Try to use the free IBM Type Transformer for Windows [1] to transform a 
TrueType font to an AFP raster or outline font. You might find some other AFP 
tools at [2].

[1] http://www-01.ibm.com/support/docview.wss?uid=psd1P4000840
[2] http://wiki.apache.org/xmlgraphics-fop/AFPResources

Alexios Giotis


On Jun 28, 2012, at 3:52 PM, Christian Pestel wrote:

> Hi,
>  
> I would like to embed Verdana font in my AFP file. How to do that  ?
> I have Windows Verdana TrueType font installed on my workstation.
>  
> Is there a Fop tool to convert Verdana TrueType to Verdana AFP raster or 
> outline ?
> or do you know an openSource converter ?
> or do I need to sell AFP Verdana raster font or AFP Verdana outline font from 
> IBM or Terrapin or else ?
>  
> Thank for your help.
>  
>  
> Christian Pestel
> christian.pes...@orange.fr


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org