TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I moved MiKTeX portable to another directory, and after that there are issues with loading fontconfig. Specifically, when compiling with xelatex, fontconfig cannot be loaded. Its location is apparently pointing to the original location OLDLOCATION.

Where does MiKTeX keep such information?

(CURRENTLOCATION\tex\latex\base\fontenc.sty (CURRENTLOCATION\tex\latex\euenc\eu1enc.def)
(CURRENTLOCATION\tex\latex\euenc\eu1lmr.fd)Fontconfig error: Cannot load config file "
Fontconfig error: Cannot load default config file
share|improve this question
up vote 4 down vote accepted

I don't have the portable version. But in my miktex the fonts.conf in <Root UserConfig>/fontconfig/config contains explicit pathes. You should also check localfonts.conf and localfonts2.conf.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.