-
Notifications
You must be signed in to change notification settings - Fork 947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retina compatible icons #850
Comments
Yes. |
Try https://github.com/openstreetmap/openstreetmap-website/blob/master/app/assets/images/sprite.svg or another file in that folder. |
or in other words, just replace |
HiDPI browsers probably support the new picture element (in the future http://caniuse.com/#search=picture). So the (few) img with png in it could be replaced by the following construct:
But the logo seems to be the only img tag on the site. |
The sprite thing could perhaps be solved with this additional code
And hope that the browsers announcing this properties are able to render svg background bugfree :-) |
the question-mark in the svg is just a text element: <text
xml:space="preserve"
style="font-size:20px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold"
x="264.8125"
y="869.62622"
id="text3021"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3023"
x="264.8125"
y="869.62622">?</tspan></text>
without a font included… the font is specified as Sans Bold does anyone have more info what font that was? |
Open Sans Bold. It should be outlined... do you have this work started in a branch? Happy to fix this up. |
@samanpwbb I'm trying to fix this issue |
Yes the question mark was just a massive hack on my part... It will be whatever my inkscape on my laptop though Sans Bold was - probably DejaVu Sans Bold or something. Happy to take a better icon for the query tool. |
Perhaps we could keep it as a question mark in HTML markup. |
I always intended the question mark icon to be temporary - it's just I didn't find anybody with the time and design skills to do something better so wound up releasing it. |
does anyone know where the clipboard and the chain icon are used? oh, and the check mark… |
It's quite possible that they aren't used. |
I added all icons as fonts for all browsers and devices. What do you think? |
Hmm.... Icon fonts are very contentious. Will need to think about that. |
are they? |
@tomhughes contentious?! Do you have any references for that statement? |
I've seen a number of articles in the last year or so complaining about them, particularly for example the use GitHub makes of them. I believe one complaint for example is the affect on screen readers, which expect text to be, well, text, and try and read it out. |
The other common problem I think is people that deliberately override fonts in browser CSS perhaps for accessibility reasons. It's all a bit hard to google for though because "icon fonts" gives you like a bazillion sites offering you one... |
how would a screenreader read an information mark (ℹ), a heart (❤) or a plus (+)? |
Well according to http://www.filamentgroup.com/lab/bulletproof_icon_fonts.html at least one screen reader reads ★ as "black star" so it's clearly not impossible that unicode pictogram type characters will be read out. |
maybe it would be an improvement to do something like right now the control buttons aren't read at all, are they? |
Changing a font is much more work (and needs more knowledge) than changing a svg. For crossbrowser support we need eot and woff font. With a svg we need a png as a fallback. |
I created the font using fontello which is pretty easy to use. Definitely easier then adding something to a svg sprite, adding it in css and keeping it up to date with a png sprite. I can show you how to add anything you like to the woff and eot font, and stylesheet using fontello. |
@fuddl could you upload the |
Just for information http://ianfeather.co.uk/ten-reasons-we-switched-from-an-icon-font-to-svg/ |
@HolgerJeromin I read it carefully and I think most of it does not apply on us:
I wonder why this technology is contentious here. Isn't it something normal in modern webdesign? also github uses an icon font, doesn't it? |
opera mini is not able to use interactive websites. So the osm page is not usable in the first place. |
Is this issue still relevant? |
yes - icons still look bad on retina: can we just serve the SVG instead of PNG? svg is:
|
I am pretty sure osm.org should be usable with Internet Explorer < 9. |
can you make a pr? |
Made two PR for the two changes and thrown both SVGs into SVGO (nice tool btw :-) The markers (for routing and other stuff) were not changed. These are interacting with the map via drag and drop and i was not brave enough for changing them, too. |
could we close this or should we wait for |
Well this is unfortunately the kind of ticket that is not sufficiently concrete to be easily closeable. There are many image that are still not retina compatible, and even some of the ones we have added patches for are not really sorted. In particular I discovered after I merged your |
You are right. Safari seems to ignore picture element, but rely on the uglier srcset for img tag. I hoped this is a temporary problem, but the bug report is quite old. |
@gravitystorm Requesting to label this issue at least as |
I made a pull request in #4775 to replace a number of commonly used icons. If this pull request is appreciated, I can replace many more of the icons with their SVG variants. This should improve the retina support of the OpenStreetMap website considerably. |
Some markers (routing, user locations) are still pngs. They should be similar to note markers from #4797. |
on the way to retina support (#104), one thing that has to be done is adding high res icons.
I mean these:

are these available as svg somewhere? or as a font?
The text was updated successfully, but these errors were encountered: