holzschu / a-shell

A terminal for iOS, with multiple windows
BSD 3-Clause "New" or "Revised" License
2.72k stars 117 forks source link

LuaLaTeX use system font #474

Open RadioNoiseE opened 2 years ago

RadioNoiseE commented 2 years ago

I was trying to use a system font with LuaLaTeX, but it leads to an error: can't find that font.imageimage

RadioNoiseE commented 2 years ago

English is not my native language, so there may be some grammar mistakes. Also, thanks for this fantastic app.

holzschu commented 2 years ago

Installing new fonts in iOS is still a work in progress. There are fonts that are available for Apple apps that are not available for other apps, unless you follow a more complicated installation process.

On the other hand, for lualatex, you can also place fonts in ~/Library/texlive/2022/texmf-dist/fonts/.... After that, luaotfload should be able to pick them.

RadioNoiseE commented 2 years ago

Ok, I got it. Thank you!

holzschu commented 2 years ago

Let me know if it doesn't work, I'll investigate more.

RadioNoiseE commented 2 years ago

It works. I put it in the texmf-local\fonts\opentype dir and updated the database using mktexlsr. Thank you.