Occasional CSS Google font corruption? -
i encountering font corruptions shown in image below, when using open sans (from google fonts) in css (as taken wholesale http://fonts.googleapis.com/css?family=open+sans:300,400,600,700):
corrupted: http://i.stack.imgur.com/jmqjl.png
non-corrupted: http://i.stack.imgur.com/2swub.png
note of text rendered fine, while other text of same markup, second line, gets garbled. doesn't seem kerning issue because symbols rendered entirely different.
i've noticed every lowercase character (and uppercase ones) moves forward one? (e.g. h becomes i letter spacing of h, resulting in ugly "kerning") think may because forward slash (/) used, i've replicated issue in lines without slash, cause strange issue?
the problem resolves refreshing multiple times (both ctrl-f5 or normal f5 don't yield noticeable differences, nor disabling cache via dev tools), comes no discernable pattern.
to clarify, not have font installed locally on computer, woff2 file requested google's servers. both corrupted , non-corrupted text can reproduced regardless of whether browser requests fresh file (http 200) or cache (http 304).
i have encountered problem before using google font (lato), did not take notice of @ point in time.
i'm not sure if issue browser issue (i'm using google chrome 43.0.2357.125) or issue font itself? else face issue well?
i've seen before, never thought reason being google. though.
instead of requesting files googles server, why not serve them own server? download .woff2 , .woff files , include them in css.
Comments
Post a Comment