# How to use Garamond font in Vietnamese

I'm trying to use Garamond font family using mathdesign package in a Vietnamese document. My goal is to get the text in the box:

This is the page 18 of this document which is exactly a translation of page 18 of this document:

I follow all the instructions I have, especially on the above documents, and get this code:

\documentclass{article}
\usepackage[vietnamese]{babel}
\usepackage[garamond]{mathdesign}
\begin{document}
Xin chào Việt Nam $a+b+\sqrt{\pi}$.
\end{document}


but it cause an error:

! Font T5/mdugm/m/n/10=ugmr8v at 10.0pt not loadable: Metric (TFM) file not found.
relax
l.3 \babel@aux{vietnamese}{}


However, still working with mathdesign, but charter font produces a good output (of course there are some warnings, but it is normal if you use Vietnamese as your document language):

\documentclass{article}
\usepackage[vietnamese]{babel}
\usepackage[charter]{mathdesign}
\begin{document}
Xin chào Việt Nam $a+b+\sqrt{\pi}$.
\end{document}


I got confused - I don't understand why. I made a workaround and do some search but either they don't help me at all or they are a bit too complicated.

I hope you can help me with some ideas.

I'm using Windows 10, MiKTeX 2.9.

I'm sorry if this question is a duplicate. As I said, I read many questions here and more about Garamond but I got nothing :(

I know I can use XeLaTeX or LuaLaTeX - it is very easy, but I want to use pdfLaTeX, as my document is very looooong so it would takes centuries to compile using XeLaTeX or LuaLaTeX.

• I get the expected output with TeX Live picture (click) – egreg Dec 11 '18 at 15:24
• @egreg On Overleaf it produces a very strange string Xin chÕào ViòệẤt Nam. I cannot even compile using MiKTeX. Do you have any idea of the reason of this? I suppose there are some missing but necessary packages, but I don't know which. – user156344 Dec 11 '18 at 15:58
• The strange accented characters are an encoding problem. Are you sure you don't have \usepackage[some option not utf8]{inputenc}? – egreg Dec 11 '18 at 18:12

I have tried installing the URW Garamond fonts in MiKTeX without success (some garbled results) due to missing font definitions for Font T5/mdugm/m/it/10=ugmri8v at 10.0pt not loadable: Metric (TFM) file not found. with the result most of the Vietnamese text is missing

However whilst testing I found the default EB Garamond seems to be good enough. For comparison I cannot see any character differences using the source files.

After two months, today I just re-research on how to solve this problem, and it appears that I have successfully solved. I post here in case any Vietnamese people also wants to use Garamond in mathdesign.

It seems that there is a bug in the MiKTeX tree for fonts like Garamond. I went to the official VnTeX site and downloaded the compressed file vntex-nonfree-3.2.zip, which contains the fixes.

I extract the file and copy the three folders in it to my MiKTeX tree. In my computer, it is

C:\Users\< me >\AppData\Local\Programs\MiKTeX 2.9


The three available folders doc, fonts and tex will be overwritten and the bugs are fixed.

Then I went to the command line and type

initexmf --update-fndb


then

updmap


Now I can use Garamond of mathdesign in my document!
\documentclass{article}