[Tilesathome] Font issue

Ed Loach ed at loach.me.uk
Wed Oct 8 16:15:01 BST 2008


I received a message earlier today via my OpenStreetMap inbox which read:
--- Start quote ---
I believe your t at h client rendered and uploaded (12,2008,1376). A copy of part of this tile is here:

http://img185.imageshack.us/img185/6500/163212822031yp2.png

As you can see, the junction node was rendered with an incorrect font. Please verify that you have the correct fonts installed on the t at h client machine. Several users seem to have this problem, and therefore would appreciate any assistance you could provide in tracking it down.
--- End quote ---

I tried rendering the tile using the xy option with both unstable (which was running last night when it rendered the tile in question), and stable (in case the results were), but both produce results as per the imageshack link above. I'm assuming that what is there now:
http://www.openstreetmap.org/?lat=50.68268&lon=-3.50895&zoom=16&layers=0B00FTF
is what the user deems to be the correct font (which looks a little wider).

I've checked the style information and at zoom level 16 (which is what I'm comparing) the information is:

.highway-motorway-junction-caption { 
fill: black; 
stroke: black; 
stroke-width: 0.2px; 
font-family: "DejaVu Sans",sans-serif; 
font-size: 4px; 
font-weight: bold; 
text-anchor: middle; 
}

The DejaVu Sans font used by the windows T at H client is that which is available here: 
http://surfnet.dl.sourceforge.net/sourceforge/dejavu/dejavu-fonts-ttf-2.25.zip
The fonts in that zip are packaged into Eddi's installer and installed as part of the installation. 

Looking more closely at the images, the 1 in the junction number is clearly not DejaVu Sans (as opening DejaVu Sans in fonts in control panel on this machine shows the line across the bottom of the 1, which the images generated from this machine don't have). I don't have a font called sans-serif as far as I can tell, so don't know what font it is using, although "Microsoft Sans Serif" looks a likely candidate.

So can anyone suggest why "DejaVu Sans" isn't being used? Could it be font-family shouldn't have the sans-serif reference in it? Certainly if I check another tile from that set the highway reference B3212 is rendered with the bar across the base of the 1, and the generic highway-ref only has 
font-family: "DejaVu Sans";
so perhaps that ",sans-serif" could just be removed? I've not checked to see whether the same applies on other zoom levels though.

Any comments about whether this may be correct, or what else may be the issue?

Thanks

Ed






More information about the Tilesathome mailing list