• Resolved subx99

    (@subx99)


    Hey All

    I’m working on a custom font install and am having some strange issues while trying to get it to work.

    Initially I was just getting a blank page after changing my font names (as per the instructions in the FAQ) and in enabling the debug functions there was nothing being reported on the page.

    I then enabled the html output in the debug settings and found that the ‘Invoice’ title and the business name, and shipping totals used a different font to the rest of the document, but the chosen font was present when viewed via my browser.

    Thinking I had something wrong in the code, I commented out the 2-4 (bold, italic, & bold-italic) font sections only leaving the standard font. This results in the html page showing the correct font across almost the whole page, but then disabling the option on the debug page and then just sending to pdf (still in debug) sees the chosen font revert back to a standard font. (whatever font it is, its not the one from the original css file)

    When I enable the first 2 fonts in the code, the pdf page goes blank again. re-enable the html debug and sure enough the font is correct for everything except the ‘Invoice’ &”shipping and total’ titles again.

    For reference, I have created the template structure as per FAQ and the only file I have been altering is the style.css

    Not sure where to look for an error in the code as it looks right to me…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    If the HTML page shows the correct font, this could either mean that you have not used the correct font syntax (since it would have to use server paths that would not be available in your browser) or that the font is installed on your system and the browser uses that instead.
    The FAQ is somewhat outdated (will be removed in the next update), the main documentation is a better place to look for information: Using custom fonts.

    If your issues persist after following the guide from the above link, please post your stylesheet so I can take a look at the code/CSS.

    Ewout

    Thread Starter subx99

    (@subx99)

    Hi Ewout,

    Thanks for the reply. Poorly worded on my part, by FAQ, I was referring to the Docs pages you’ve linked to.

    Given your thoughts that it may be something related to having the font stored somewhere on my system, I figured I would test what happens if I change the name of my font file to something else. Doing this fixed the issue, so I guess there was something in the syntax as you mentioned, and I just couldn’t see it.

    Thanks a bunch for your input!!

    Plugin Contributor Ewout

    (@pomegranate)

    Great, glad to hear the issue is resolved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘custom font’ is closed to new replies.