holzschu / a-shell

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

LuaLaTeX use system font #474

Open RadioNoiseE opened 1 year ago

RadioNoiseE commented 1 year 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 1 year ago

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

holzschu commented 1 year 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 1 year ago

Ok, I got it. Thank you!

holzschu commented 1 year ago

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

RadioNoiseE commented 1 year ago

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