TeX - LaTeX Asked on January 16, 2021
I’m using the Lucida type 1 fonts in a document written in portuguese.
When I typeset the word ‘Definição’ in small caps, I get a small caps
ç, but typesetting it in small caps bold, I get just a bold ç.
I suspect that that happens because the Lucida type 1 fonts doesn’t have the ç
in small caps bold.
Is there anyway of getting a ç in small caps bold?
documentclass{article}
usepackage{lucimatx}
begin{document}
{scshape Definição textbf{Definição}}
end{document}
It's a bug in the font, which uses the normal lowercase ç instead of placing the cedilla under the small caps lowercase c.
Fixing it requires surgery in the virtual font file, I'm afraid.
Copy the file hlhbc8t.vf
from the system to a working directory. Then run
vftovp hlhbc8t.vf > hlhbc8t.vpl
Now edit the created file hlhbc8t.vpl
in the following way. Where you find
(CHARACTER O 347
(CHARWD R 0.541)
(CHARHT R 0.545)
(CHARDP R 0.19)
(MAP
(SETCHAR O 347)
)
)
it should become
(CHARACTER O 347
(CHARWD R 0.621)
(CHARHT R 0.545)
(CHARDP R 0.19)
(MAP
(PUSH)
(MOVERIGHT R 0.05)
(SETCHAR O 270)
(POP)
(SETCHAR C c)
)
)
Now run vptovf hlhbc8t.vpl
, which will overwrite the file hlhbc8t.vf
and also create hlhbc8t.tfm
.
If, in the same working directory, you run your example file
documentclass{article}
usepackage{lucimatx}
begin{document}
{scshape Definição textbf{Definição}}
end{document}
you will get
How to always use these newly created files without further hassle? Run the following commands
> mkdir -p $(kpsewhich -var-value TEXMFHOME)/fonts/vf/bhfix/lucida
> mkdir -p $(kpsewhich -var-value TEXMFHOME)/fonts/tfm/bhfix/lucida
> mv hlhbc8t.vf $(kpsewhich -var-value TEXMFHOME)/fonts/vf/bhfix/lucida
> mv hlhbc8t.tfm $(kpsewhich -var-value TEXMFHOME)/fonts/tfm/bhfix/lucida
(where >
represents the shell prompt).
I hope you're not on Windows. In case, somebody else might be able to help. I don't think that there's much hope to get fixed files from the developers.
Correct answer by egreg on January 16, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP