aliftype / amiri

Amiri (أميري) is a body text Naskh typeface
http://aliftype.com/amiri
SIL Open Font License 1.1
389 stars 35 forks source link

Italic text within bold with lualatex #139

Closed seloumi closed 6 years ago

seloumi commented 6 years ago

I have this issue https://github.com/latex3/latex2e/issues/7

The bolded text appear also italic

% lualatex 
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Script=Arabic]{Amiri}

\begin{document}
\pardir TRT\textdir TRT

\textbf{إمكانيات}
\end{document}
khaledhosny commented 6 years ago

I can’t reproduce, I get bold text here: test.pdf

seloumi commented 6 years ago

I have texlive 2017

log file: test2.log

pdf file: test2.pdf

khaledhosny commented 6 years ago

The log is not telling me much. If it works with XeTeX but not LuaTeX then most likely it is a bug in luaotfload, but I can’t reproduce this to do any debugging.

One difference is that I have the fonts installed in system font directories, and your example is reading them from TEXMF tree, so that might be related. Can you try installing the fonts and see if it makes any difference.

khaledhosny commented 6 years ago

I removed the system fonts and even luaotfload cache and no difference.

seloumi commented 6 years ago

I have installed the fonts and the result is the same: bold italic rather then bold !

khaledhosny commented 6 years ago

This really looks like a luaotfload bug, the fonts’ metadata are correct as far as I know, and no other application has issue with it.