1 Attachment(s)
Font/CSS Not displaying properly
Zen Cart 1.5.5a.
When editing an order in Admin, the FontAwesome characters are being displayed by the browser as non-displayable characters (a small rectangle with the two-byte hex(?) code inside it). I will attach a screen snapshot. I do not have a screen-shot from the old 1.3.9h installation for comparison, so I can only guess at what those characters (miniature icons?) display as.
One example of the CSS that is being invoked is the use of class="fa-user". Below is the rule from the style sheet:
Code:
.fa-user:before{content:"\f007"}
Any suggestions on debugging this one?
It’s purely a personal bias, but I dislike using funny fonts to display special characters — it always seems like a bit of a kludge.
Re: Font/CSS Not displaying properly
Quote:
Originally Posted by
JRGoold
It’s purely a personal bias, but I dislike using funny fonts to display special characters — it always seems like a bit of a kludge.
It's not a kludge, and they're not "funny fonts". It's the industry-standard approach for symbols and iconography, particularly because the icons are usually vectorized and thus scale very efficiently to match the resolution of the current "display" with no pixelation or other breakage.
Quote:
Originally Posted by
JRGoold
in Admin, the FontAwesome characters are being displayed by the browser as non-displayable characters (a small rectangle with the two-byte hex(?) code inside it)
It would seem that either you're missing some of the font awesome files from your server, or your admin .htaccess hasn't been updated to allow for the necessary filetypes.
Re: Font/CSS Not displaying properly
What browser are you using? Some of the older browsers (like IE-8) have "issues" when displaying those characters.
Re: Font/CSS Not displaying properly
There's an IE8 out? I've gotta do an update.:P
Re: Font/CSS Not displaying properly
I am using Firefox 47.0 under Linux Mint 17.3 (Rosa).
However, DrByte hit the hammer on the nail with the head: Some missing file suffixes in .htaccess.
One of the things I tried, on my test site, was installing the latest FontAwesome. It has a couple of extra file suffixes (although leaving them out did not break Zen Cart). After updating two of the .htaccess files, both the version of FontAwesome distributed in Zen Cart 1.5.5a (it looks like 4.5.0) and the latest (4.6.3) worked fine — so I also updated the live site.
DrByte: I did indicate my feelings were a personal bias. Standards can be a supporting argument for using technology in a certain way, but that does not mean all standards are good standards, or in some cases even a true standard (hence some of the jokes about standards). Some standards seem to be an impediment to innovation.
My statement about using fonts seeming like a kludge was partly based on my original reactions to both “ASCII Art” (and its ANSI counterpoint) and the line-drawing characters we used to see on character-only terminals. The line-drawing characters were a work-around for the hardware of the time. VisiCalc on my home-made clone of an Apple ][ used it effectively, if I remember correctly. Current hardware and software is capable of drawing vector-graphic image files without resorting to embedding images in font files.
Again, as I said, a personal bias. The biases get worse, I fear, as I get older. I even get nostalgic for programming in Assembler language :(
Now, back to bashing my head against the wall with Sanitizer :smile:
Re: Font/CSS Not displaying properly
Quote:
Originally Posted by
DrByte
It's not a kludge, and they're not "funny fonts". It's the industry-standard approach for symbols and iconography, particularly because the icons are usually vectorized and thus scale very efficiently to match the resolution of the current "display" with no pixelation or other breakage.
Oooohhh, I love it when you talk dirty.:D