Skip to content
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

missing font not detected for missing package haranoaji #12194

Open
cderv opened this issue Mar 3, 2025 · 1 comment · May be fixed by #12206
Open

missing font not detected for missing package haranoaji #12194

cderv opened this issue Mar 3, 2025 · 1 comment · May be fixed by #12206
Assignees
Labels
enhancement New feature or request latex LaTeX engines related libraries and technologies
Milestone

Comments

@cderv
Copy link
Collaborator

cderv commented Mar 3, 2025

Thank you for your comment @cderv

I have the same font-not-found error with tinytex and rmarkdown. I used the following Rmd file.

---
title: reprex
author: KS
output:
  pdf_document:
    latex_engine: lualatex
documentclass: bxjsarticle
classoption: 
  - pandoc
  - a4paper
---

こんにちは

The log files from both Quarto and R Markdown are nearly identical, with only minor differences in string counts:

❯ diff quarto.log rmarkdown.log                                                           
3,4c3,4
< **quarto.tex
< (./quarto.tex
---
> **rmarkdown.tex
> (./rmarkdown.tex
361c361
<  3471 strings out of 475512
---
>  3467 strings out of 475512
366c366
<  26447 multiletter control sequences out of 65536+600000
---
>  26443 multiletter control sequences out of 65536+600000
368c368
<  107i,1n,96p,1250b,100s stack positions out of 10000i,1000n,20000p,200000b,200000s
---
>  107i,1n,96p,1272b,100s stack positions out of 10000i,1000n,20000p,200000b,200000s

This seems to be a known issue with a well-established workaround. This tutorial for R + TinyTeX users suggests that a quick fix is running tinytex::tlmgr_install("haranoaji") (However, the tutorial's author appears to prefer system-wide font installation.)

If you know the line in the log that would help us, then we can add it.

The following lines indicate that the HaranoAji fonts are missing, but it's not obvious that they can be installed with tlmgr install haranoaji:

luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: File not found: "HaranoAjiMincho-Regular.otf".
! Font \JY3/mc/m/n/10=file:HaranoAjiMincho-Regular.otf:-kern;jfm=ujis at 9.24713pt not loadable: metric data not found or bad.

Originally posted by @kenjisato in #12161 (reply in thread)

@cderv
Copy link
Collaborator Author

cderv commented Mar 3, 2025

This will be solved once TinyTeX itself is updated so that we use the same rule

@cderv cderv self-assigned this Mar 3, 2025
@cderv cderv added the latex LaTeX engines related libraries and technologies label Mar 3, 2025
@cderv cderv added this to the v1.7 milestone Mar 3, 2025
@cderv cderv added the enhancement New feature or request label Mar 3, 2025
@cderv cderv linked a pull request Mar 4, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request latex LaTeX engines related libraries and technologies
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant