jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.61k stars 3.38k forks source link

ConTeXt template: Add more fontfallbacks (e.g. Hebrew, Arabic) #5958

Open denismaier opened 4 years ago

denismaier commented 4 years ago

Shouldn't we add more fontfallbacks to default.context?

mb21 commented 4 years ago

Duplicate of https://github.com/jgm/pandoc/issues/5958 ?

denismaier commented 4 years ago

Duplicate of which one? Your link is circular.

mb21 commented 4 years ago

ah, I meant https://github.com/jgm/pandoc/issues/5959 of course

mb21 commented 3 years ago

I still think it's a duplicate :P closing in favour of #5959

denismaier commented 3 years ago

No, it isn't a duplicate. The template currently has only one fallback:

\definefallbackfamily[mainface][rm][CMU Serif][preset=range:greek, force=yes]

This issue here is about adding more fallbacks, e.g. one for Hebrew, one for Arabic. The other issue is about making the fallback fonts customizable via variables, think of:

\definefallbackfamily[mainface][rm][$if(mainfont)$$mainfont$$else$CMU Serif$endif$][preset=range:greek, force=yes]

I can include both changes in one PR though.

mb21 commented 3 years ago

ah, I see!

I can include both changes in one PR though.

that would be great, yes!