javascript - Certain HTML Character Entities are HUGE in Firefox Only -
for reason, in firefox 12.0 mac os x, 〉 (⟩) characters larger should be. on chrome , safari, how want them be.
i have adddefaultcharset utf-8 in .htaccess <meta charset="utf-8"> in <head> (as group i'm delivering these files may not use .htaccess).
also, according adobe's browser lab, ie 7 , 8 show square box... there can these browsers support character? make things lot easier (as colors going changing, images inconvenient, , no color fade images).
demo: http://cameronspear.com/demos/rang/
this see in chrome , expect see:

this firefox showing:

this screenshot browser labs of ie8:

tl;dr: want of these screenshots first 1 using 〉 aka ⟩ characters. use of javascript acceptable.
thanks.
[edit] should specify it's not crucial have ⟩ character able change color css , have same across multiple browsers.
solution
i wanted share did posterity's sake.
thanks pointy's tips , resources, created own svg inkscape using template , methods described @ "how make own icon webfont". mapped big angle bracket x , small 1 x.
the 1 thing ran angle needs touch baseline , go 72% way top of box fit "inline," capital x original too-tall one, , lowercase x more inline one.
i converted svg ttf http://www.freefontconverter.com/ , converted webfont http://www.fontsquirrel.com/fontface/generator
... , it.
the demo (http://cameronspear.com/demos/rang/) still up. can see looks consistent in browsers , onclick rotation animation dang close point, etc.
[update] found great resource called icomoon helps on making fonts , organizing fonts web, , accepts regular svg vectors can make in illustrator , not mess inkscape since icomoon handles keyboard mapping , stuff. can export icons use, load 3 or 4 icons if that's need , not entire font.
it's become invaluable resource, , recommend else wanting icon fonts check out. can learn more entire process css-trick's 113th screencast.
making icon font easy enough can it, though (for me) process mysterious. suspect there many actual graphic artists better @ it, , surely many understand technical details more do.
here pretty thorough blog post on topic. (not mny blog.) main thing doesn't describe relationship between inkscape "art board" area , vertical positioning of each glyph in font. goes detail, i've never been able figure out.
what did, therefore, make square artboard 1024 pixels on side. set grid in inkscape art board divided 16x16 grid. makes (somewhat) easy design characters render nicely @ 16px font size. (of course target different font size, if want; 16x16 stuff needs pretty small however.) then, make sure when put glyphs on page, they're in 1em 1em box (or 16px 16px; want in css) no padding. use <i> tags, , give them display: inline-block. gives me lot of flexibility, , works great.
the inkscape svg font tool is, put mildly, pretty raw. it's literally result of somebody's summer project. works, not more barely. save often.
now process generating font files crazy. use fontsquirrel. upload .svg saved inksccape, , ask eot, woff, , ttf. amazingly, works.
if need few glyphs, pretty sweet way go, because you'll have little bitty font file download , it'll cached browser. there accessibility issues , practice sufficiently controversial more fanatical members of community may consider barbarian doing :-)
Comments
Post a Comment