[Tilesathome] Font issue

Ed Loach ed at loach.me.uk
Wed Oct 8 20:30:09 BST 2008


Bob(Knut?) wrote:

> I won't have time to do this, but if anybody has the time
> http://trac.openstreetmap.org/ticket/1228 might have some hints
> to a
> solution to these problems: inline SVG fonts.

That looks like it would be a solution, but in this instance I do
have the fonts installed, but the wrong one is chosen at some point,
presumably when the svg is converted to png. The
highway-motorway-junction-caption seems to be the only item where
font-family is "DejaVu Sans",sans-serif rather than just "DejaVu
Sans" (at least in osm-map-features-z16.xml). 

With the current definition I get
http://www.loach.me.uk/tah/tile_16_32128_22031a.png
but if I amend it to say 
font-family: "DejaVu Sans";
(as it is for things like highway-name and highway-ref) then I get
http://www.loach.me.uk/tah/tile_16_32128_22031b.png
which seems to be using the correct font.

As it seems to be only the highway-motorway-junction-caption that is
rendering with the wrong font I would suggest a quicker solution
would be to replace the font-family line at each zoom level as I
have above. If someone doesn't have the correct fonts then all
highway names and references will already be rendering incorrectly,
and this suggested change just brings the motorway junction caption
in line with the others.

Ed






More information about the Tilesathome mailing list