Opened 15 years ago

Closed 15 years ago

#429 closed defect (fixed)

Print - new font LiberationSans-Regular causes error

Reported by: astrid_emde Owned by: astrid_emde
Priority: blocker Milestone: 2.6 release
Component: print Version: 2.6 rc1
Keywords: new fonts, afm Cc: christoph, marc, mschulz

Description

Der Druck (printPDF) ist so eingerichtet, dass der Adobe-Reader als Browser-Plugin das gelieferte PDF öffnet.

  • Browser: WinXP
  • Server: Debian 4.

2.5.1 Adobe-Reader (7.0.5) when opens the pdf

In der Schrift "LiberationSans-Regular" ist der Wert für /BBox fehlerhaft.

This message shows up in IE and Firefox

Change History (10)

comment:1 by astrid_emde, 15 years ago

Owner: changed from astrid.emde to astrid_emde
Status: newassigned

comment:2 by christoph, 15 years ago

Priority: majorblocker

comment:4 by astrid_emde, 15 years ago

hello marc,

this sounds good. Would you like to test it?

The release of Mapbender 2.6 shall come out before the intergeo. So it is still time to fix it.

best regards astrid

comment:5 by marc, 15 years ago

If i enable the messages during the print creation i get this:

openFont: ../classes/fonts/LiberationSans-Regular.afm - LiberationSans-Regular
openFont: php file exists ../classes/fonts/php_LiberationSans-Regular.afm
selectFont: checking for - ../classes/fonts/LiberationSans-Regular
selectFont: pfb or ttf file not found, ok if this is one of the 14 standard fonts

comment:6 by marc, 15 years ago

Cc: marc added

made changes in 2.6 branch.

http://trac.osgeo.org/mapbender/changeset/4534/branches/2.6
++
added 2 new ttf files to fonts folder
('LiberationSans-Regular.ttf')
('LiberationMono-Regular.ttf')

now the print messages looks a little bit nicer.

openFont: ../classes/fonts/LiberationSans-Regular.afm - LiberationSans-Regular
openFont: php file exists ../classes/fonts/php_LiberationSans-Regular.afm
selectFont: checking for - ../classes/fonts/LiberationSans-Regular.ttf
selectFont: adding font file - ../classes/fonts/LiberationSans-Regular.ttf - LiberationSans-Regular
selectFont: FirstChar=32
selectFont: LastChar=255
adding extra info to font.(8)
BaseFont : LiberationSans-Regular
Widths : 10
FirstChar : 32
LastChar : 255
FontDescriptor : 11
SubType : TrueType
o_font Widths : 10
o_font FirstChar : 32
o_font LastChar : 255
o_font FontDescriptor : 11
o_font SubType : TrueType

I've tested it under windows yet.

Shall we bring this to trunk too?? or did mandsch take there some completly new classes?

regards Marc

comment:7 by astrid_emde, 15 years ago

Cc: mschulz added
  • thanks marc
  • I took mschulz in cc so he will get the info too

comment:8 by christoph, 15 years ago

marc, please add it to trunk and branches/2.6

It would be great to have this fixed. Please supply changesets as well, if it's not too much trouble.

comment:9 by marc, 15 years ago

here's the changeset of trunk
http://trac.osgeo.org/mapbender/changeset/4575/trunk/mapbender/http/classes/class.pdf.php

2.6 changeset vide supra

i think that it's fixed now.

cheers marc

comment:10 by marc, 15 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.