New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have emoji and U+28FF working in sphinx lualatex
generated for titles and code
#12332
Comments
Using #12195 n-peugnet solution I go it (almost) working: Change
content, titles and code Colors emoji in PDF ! But ⣿ character missing, in content, code and titles ;(
How to have both hammer 🔨 and ⣿ (U+28FF) in the final PDF ? |
You can provide a chain of fallback fonts in |
lualatex
generated for titles and code
I applied @n-peugnet advice and this works at my locale
produces |
I changed the type of this ticket to |
Yes working like a charm ! |
As I stumbled across this issue: latex_elements = {
'preamble': r"""
\usepackage{commonunicode}
""",
} |
Describe the bug
with
latex_elements = {"preamble": r"\setmainfont{Symbola}"}
we have beautiful B&W emoji in LuaLaTeX generated PDF content but not on titles and not on code.How to Reproduce
Below a sphinx to illustrate emoji in latexpdf:
add some content:
Set latex_engine and article lualatex:
HTML emoji are ok
HTML emoji are ok
latexpdf with
lualatex
engine have no emoji:with
setmainfont
get get some emoji (B&W and only in content):with Symbola B&W emoji but not on title and code
The latex log file expose that in
code::
latex look for emoji inFreeMono.otf
and in title latex look for emoji inFreeSansBold.otf
:To see which one of my fonts has the
⣿
.On my unbuntu 22.04 the below fonts have the ⣿ character:
Environment Information
Sphinx extensions
Additional context
No response
The text was updated successfully, but these errors were encountered: