Skip to content

missing font not detected for missing package haranoaji #12194

Closed
@cderv

Description

@cderv

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)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestlatexLaTeX engines related libraries and technologies

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions