Giter Site home page Giter Site logo

Comments (7)

unixmonkey avatar unixmonkey commented on July 24, 2024 1

Ok, then it must not be a supported glyph in your system fonts (on the server that actually generates the PDF).

You may need to install system font packages on your linux servers with something like yum install freetype fontconfig or specifically embed a font that you know has those glyphs as described here: #830 (comment)

from wicked_pdf.

clementf avatar clementf commented on July 24, 2024 1

Hey @jeremygradisher, I'm running into a similar issue with the pi symbol, any chance you found something that worked for you?

from wicked_pdf.

unixmonkey avatar unixmonkey commented on July 24, 2024

Can you verify that your HTML that gets converted has this in the <head>, like is suggested here in the README?

<meta charset='utf-8' />

from wicked_pdf.

jeremygradisher avatar jeremygradisher commented on July 24, 2024

It does:
Screenshot 2024-01-09 at 4 29 55 PM

from wicked_pdf.

jeremygradisher avatar jeremygradisher commented on July 24, 2024

I am working on embedding a font to keep this consistent across users and across dev, production and within the documents generated, but I do want to point out, within the PDF document calculations, that Alpha symbol "𝛼" is showing up. But then in the variables table it does not.
alpha-symbol

If you look at the way I am rendering this to string w render_to_string, you will see it is done with KaTex using \\alpha within the calculation, and just using the symbol "𝛼" within the table.
Screenshot 2024-01-11 at 11 25 28 AM

Again, I am following up with embedding a font into my Rails application that I can prove supports the "𝛼" Alpha greek character to see if that resolves it. I will update once I have it resolved to state what the fix is.

from wicked_pdf.

jeremygradisher avatar jeremygradisher commented on July 24, 2024

@clementf What I was getting here to print was coming from an API. We solved this by getting that symbol to be sent like this \u003E&alpha;\u003C from the API as opposed to \u003E𝛼\u003C which unfortunately probably does not help you here.

from wicked_pdf.

clementf avatar clementf commented on July 24, 2024

Thanks @jeremygradisher for the help! In the end we're also going to solve it with a workaround for the time being.

from wicked_pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.