ineshbose / simple-icons-latex

LaTeX bindings for Simple Icons
https://ctan.org/pkg/simpleicons
Creative Commons Zero v1.0 Universal
21 stars 1 forks source link

[pdfLatex] Missing character in font cmr10 #26

Open VVill-ga opened 8 months ago

VVill-ga commented 8 months ago

I am using pandoc with the pdfTex TexLive renderer to compile from mixed markdown/LaTeX to pdf, and it looks like LaTeX is using the wrong font trying to display the icons. I have tried adding \pdfmapfile{+simpleicons.map} to the header as per the documentation, but that does not help.

My document is very simple, so I will paste it, as well as the terminal output below:

---
header-includes:
    - \usepackage{simpleicons}
    - \pdfmapfile{+simpleicons.map}
---

Testing: \simpleicon{html5}
Testing: \simpleicon{css3}

and I get the output:

[WARNING] Missing character: There is no Ê (U+00CA) in font cmr10!
[WARNING] Missing character: There is no ó (U+00F3) in font cmr10!
VVill-ga commented 8 months ago

It doesn't look like this issue has anything to do with Pandoc. I tested a similar simple file with the pdflatex command (without the pdfmapfile because it said it was redundant), and this is the log: test.log

Here is the part of the log that I think matters:

LaTeX Font Info:    Trying to load font information for U+simpleiconsFour on input line 6.
LaTeX Font Info:    No file UsimpleiconsFour.fd. on input line 6.

LaTeX Font Warning: Font shape `U/simpleiconsFour/m/n' undefined
(Font)              using `U/cmr/m/n' instead on input line 6.

Missing character: There is no Ê in font cmr10!

LaTeX Font Info:    Trying to load font information for U+simpleiconsTwo on input line 8.
LaTeX Font Info:    No file UsimpleiconsTwo.fd. on input line 8.

LaTeX Font Warning: Font shape `U/simpleiconsTwo/m/n' undefined
(Font)              using `U/cmr/m/n' instead on input line 8.

Missing character: There is no ó in font cmr10!

Please let me know if there is anything else I can test. Unfortunately, I am not very familiar with LaTeX package development.

ineshbose commented 7 months ago

Hi, sorry it took me a while to get on this.

It seems to be quite similar to: https://github.com/ineshbose/simple-icons-latex/issues/15

May I know if you're on the latest version of the package?

VVill-ga commented 7 months ago

No worries, thanks for getting back! I've been using LuaLatex in the meantime.

Using \listfiles I got the information that my simpleicons package is from 2023/03/03, version 8.6.0

That's quite old! So I attempted to update everything through tlmgr, and the whole thing broke on me. Just to leave an update, I don't know when I'll have a working render engine again, hopefully reinstalling isn't too painful.

ineshbose commented 7 months ago

I got the information that my simpleicons package is from 2023/03/03, version 8.6.0

Yes, this seems to be the version before the fix.

I attempted to update everything through tlmgr, and the whole thing broke on me.

This shouldn't happen! There weren't any breaking changes since; it may be something else that is LuaLatex specific assuming you continued working on your document. I'm glad you were able to use LuaLatex for the workaround; while just to confirm that this issue is resolved, could you test on a fresh document on your end with the contents when your document was simple (you shared the contents above when you opened this issue). Let me know.