this is what it says:

$ more /usr/X11R6/lib/X11/fonts/Type1/l049016t.afm 
StartFontMetrics 3.0
Comment Copyright Copyright (c) 2001 by Bigelow & Holmes Inc. Instructions 
copyright (c) 2001 by URW++.
Comment Creation Date: 11/12/2001
FontName LuxiSerif-Bold
FullName Luxi Serif Bold
FamilyName Luxi Serif
Weight Bold
ItalicAngle 0.0
IsFixedPitch false
UnderlinePosition -36
UnderlineThickness 72
Version 1.1000
Notice Copyright (c) 2001 by Bigelow & Holmes Inc. Instructions copyright (c) 
2001 by URW++.
EncodingScheme FontSpecific
FontBBox -217 -211 994 1012
CapHeight 723
XHeight 536
Descender -205
Ascender 723
StartCharMetrics 310
...


the problem seems to be that fontMapper.pdfToAwt( bf, fontSize ) doesn't seem 
to be working. the ttf font i had used before is installed on the system, 
that's why it seems AWT can use, while the X11 fonts are not, and the pdfToAwt 
for this font just returns "Dialog"...

i'm giving up here, trying to find a times-bold.ttf to download and embed. 
cannot be that i need a whole afternoon to get my stupid chart title done. i 
also tried to convert the crappy dfont format for the mac os standard times 
font to ttf using Dfontsplitter, but that gives me "Table 'OS/2' does not exist 
in /Users/hhrutz/Desktop/font_tmp/TimesBold.ttf"

why is this all such a pita ?!

thanks for all help nevertheless, -sciss-



On 22 Mar 2011, at 17:18, 1T3XT BVBA wrote:

> Op 22/03/2011 18:08, Sciss schreef:
>> or let's say i have these files:
>> 
>> /usr/X11R6/lib/X11/fonts/Type1/l049016t.pfa
>> /usr/X11R6/lib/X11/fonts/Type1/l049016t.afm
>> 
>> which i think represent Luxi Serif Bold Regular
>> 
>> if i try to read that
>> 
>>       val bf = BaseFont.createFont( 
>> "/usr/X11R6/lib/X11/fonts/Type1/l049016t.afm", BaseFont.IDENTITY_H, 
>> BaseFont.EMBEDDED )
>> 
>> i get
>> 
>>       ExceptionConverter: java.io.UnsupportedEncodingException: Identity-H
>> 
>> which encoding do i need to put here to use these Type1 fonts?
> You're talking about a Type 1 font.
> It would surprise me if they had UNICODE support (which is what you want 
> if you use Identity-H).
> The encoding can be font specific, in which case "" is sufficient as 
> encoding.
> Or it can be Adobe's Standard encoding: BaseFont.WINANSI, 
> BaseFont.MACROMAN,...
> 
> Check out your AFM, does it have a line that says:
> EncodingScheme AdobeStandardEncoding
> Or does it say:
> EncodingScheme FontSpecific
> 
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software 
> be a part of the solution? Download the Intel(R) Manageability Checker 
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a 
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples: 
> http://itextpdf.com/themes/keywords.php


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to