Thanks, but which filename should I use to tell pdfbox to use the font from the 
delivered lib?

-------- Original-Nachricht --------
> Datum: Thu, 06 Dec 2012 18:35:58 +0100
> Von: Andreas Lehmkuehler <[email protected]>
> An: [email protected]
> CC: Gerrit Lober <[email protected]>
> Betreff: Re: Problem with PDFont.getStringWidth()

> Am 06.12.2012 08:22, schrieb Gerrit Lober:
> > Dear Andreas, thanks, I think you answered my question and it is a
> problem with helvetica font, that every letter has the same width.
> Not every letter but the figures
> 
> > Therefore it seem when I try to center the textposition with
> >
> > float textPosition = pageCenter.x - (font.getWidth("12")/2);
> >
> > that my text is not centered because the "1" needs less space than a "3"
> for example in Helvetica.
> Try to position each character separately
> 
> > I see that there is an included resource in PDFbox for ArialMT. How can
> I load this font?
> It is a true type font. Use PDTrueTypeFont#loadTTF()
> 
> > How can I answer a reply in this mailing list? I don't get your mail in
> my inbox.
> Send an email to [email protected] to subscribe to the
> mailing 
> list, see [1] for further information.
> 
> 
> > Thanks!
> >
> 
> BR
> Andreas Lehmkühler
> 
> [1] http://pdfbox.apache.org/mail-lists.html

Reply via email to