Results 1 to 6 of 6
  1. #1
    Join Date
    May 2016
    Location
    St. John's NL Canada
    Posts
    28
    Plugin Contributions
    0

    Default 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.
    Attached Images Attached Images  

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Font/CSS Not displaying properly

    Quote Originally Posted by JRGoold View Post
    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 View Post
    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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default 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.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Font/CSS Not displaying properly

    There's an IE8 out? I've gotta do an update.

  5. #5
    Join Date
    May 2016
    Location
    St. John's NL Canada
    Posts
    28
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Font/CSS Not displaying properly

    Quote Originally Posted by DrByte View Post
    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.

 

 

Similar Threads

  1. Index not displaying properly??!?!
    By kmoore in forum General Questions
    Replies: 1
    Last Post: 4 Mar 2012, 02:40 AM
  2. Not Displaying Properly in IE.
    By top hatt in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Feb 2012, 12:53 PM
  3. IE not displaying sidebar CSS properly
    By khanse44 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Feb 2010, 03:22 PM
  4. Page not displaying properly
    By confused_aswell in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Jul 2009, 09:53 PM
  5. Cart not displaying properly in IE
    By bungenstein in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Mar 2009, 05:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR