I have a supposedly trivial question and I'm having a hard time finding an answer.  How can I determine the directories where fontspec is looking for OTF files?   I want to edit FontAwesome.otf with fontforge following these instructions:    On an Ubuntu 14.10 machine with TeX Live 2014 installed I edited this font and saved a duplicate in the following directories because I found copies or links to FontAwesome.otf.  /usr/share/texlive/texmf-dist/fonts/opentype/public  /usr/share/texmf/fonts/opentype/public  /usr/share/texlive/texmf-dist/fonts/opentype/public   After editing the corresponding cls file XeLaTeX and LuaLaTeX still can't find the new font.  I installed the FontAwesome package by sudo apt-get install fonts-font-awesome. The FontAwesome TeX package was downloaded automatically. I don't know whether this downloaded another copy of the font.
65391
Ubuntu desktop with 12.04 is about to crash.  Installed 13.04 on a new machine, want to transfer Book Antiqua font from old machine to the new one.  How do I find it on the old machine?  My /usr directory is empty. My fonts.conf file has these lines: &lt;!-- Font directory list --&gt; &lt;dir&gt;/usr/share/fonts&lt;/dir&gt; &lt;dir&gt;/usr/x11R6/lib/X11/fonts&lt;/dir&gt;  &lt;dir&gt;/usr/local/share/fonts&lt;/dir&gt; &lt;dir&gt;~/.fonts&lt;/dir&gt;  Don't know what this means, but my /usr directory has nothing in it.
68346
I'm sure this is a newbie question, but I can't figure this out. I have tried to follow the advice here:  and here:   But I can not seem to be able to generate any font change. I either get no change or error messages.  Here is the output of one failed attempt to change the font to Times using this command:  \rmfamily \renewcommand{\rmdefault}{ptm}     Apparently I either don't have a correct package installed or...  The output says " Metric (TFM) file not found." but I am not sure where to go from there.
112489
Getting the message: font-not-found see fontspec documentation. I'm using cls file abbreviated at the bottom of this page whose origin is latextemplates.com/template/friggeri-resume-cv. I've tried all sorts of fonts from system fonts and tex fonts. Nothing seems to work! I would like to get fonts like in  to work, but I would be happy if I can just get one font to work!  \ProvidesClass{friggeri-cv}[2012/04/30 CV class] \NeedsTeXFormat{LaTeX2e}  \DeclareOption{print}{\def\@cv@print{}} \DeclareOption*{% \PassOptionsToClass{\CurrentOption}{article}% } \ProcessOptions\relax \LoadClass{article}   %%%%%%%%%% % Colors % %%%%%%%%%%  \RequirePackage{xcolor}  \definecolor{white}{RGB}{255,255,255} ...  %%%%%%%%% % Fonts % %%%%%%%%% \RequirePackage{fontspec} \RequirePackage[math-style=TeX,vargreek-shape=unicode]{unicode-math} \RequirePackage[T1]{fontenc}  \RequirePackage{libertine}  \newfontfamily\bodyfont[]{\rm} \newfontfamily\thinfont[]{\biolinum} \newfontfamily\headingfont[]{\sc}  \defaultfontfeatures{Mapping=tex-text} \setmainfont[Mapping=tex-text, Color=textcolor]{Tex Gyre Heros}  %\setmathfont{XITS Math}  %%%%%%%%%% % Header % %%%%%%%%%%  \RequirePackage{tikz}  \newcommand{\rolefont}{%   \fontsize{14pt}{24pt}\selectfont%   \thinfont%   \color{white}% }  \newcommand{\header}[3]{%   \begin{tikzpicture}[remember picture,overlay]     \node [rectangle, fill=fillheader, anchor=north, minimum width=\paperwidth, minimum    height=4cm] (box) at (current page.north){};     \node [anchor=center] (name) at (box) {%       \fontsize{40pt}{72pt}\color{header}%       {\thinfont #1}{\bodyfont  #2}     }; \node [anchor=north] at (name.south) {%   \fontsize{14pt}{24pt}\color{header}%   \thinfont #3%     };   \end{tikzpicture}   \vspace{2.5cm}   \vspace{-2\parskip} }  ...  %%%%%%%%%%%%%%%%  % Other tweaks %  %%%%%%%%%%%%%%%%  \RequirePackage[left=6.1cm,top=2cm,right=1.5cm,bottom=2.5cm,nohead,nofoot]{geometry} \RequirePackage{hyperref}
116421
Is it possible to change the place, where TexStudio (I use last version of TEXStudio) on Windows 8) puts generated PDF file? By default all files (.tex and related .pdf, .aux etc.) are in the same folder. I would like to make a separate folder for  PDf's, and make all PDF's be stored in it.
96110
I'm using Windows/TeXworks/MiKTeX, and I would like to have one style file I can use anywhere in any document in my top-level folder. If I want to add a new command or renew an old one, I'd like that to be available in all documents recursively contained in my top-level folder. I have a very hierarchical structure to my top-level folder. So this would seem to point to having a single file that TeXworks knows about. Could I add a path in Preferences -> Typesetting -> Paths for TeX and related programs? I've tried that, possibly superficially, without any success. Adding the correct folder to the Windows PATH variable doesn't seem to do the trick, either.   On the other hand, suppose I want to send someone a TeX file? It would be nice in such circumstances to be able to have the style file in the same folder as the TeX file. If I do that, how could I ensure that it's always up-to-date? Is there a script available somewhere that could take my master style file and push it down to all pre-existing lower-level locations?   Just to reiterate: I want uniformity of my style files in my very hierarchical folder structure. However, I would also like modularity, in that each folder is self-contained. How can I achieve that?  Also, out of curiosity, since I may acquire a Linux computer soon, how would I do this in, say, *ubuntu with TeXlive?
96358
I run the following MWE using LuaLaTeX in TeXworks  \documentclass[11pt,twoside,a4paper]{article} \usepackage{MinionPro}  \begin{document}     \textsc{Hello World.} \end{document}    and it gives an error      File MinionPro.sty not found.  If I now input the file name with the full path,       C:/texlive/2017/texmf-dist/tex/latex/MinionPro/MinionPro.sty   it finds the file, but produces an output that isn't in small caps so there seems to be a substitution at work.  The log file says      Try loading font information for TU+MinionPro-OsF" and "No file TUMinionPro-OsF.fd    which is correct - there are OT1, OT2 fds (among others) but no TU file.  So where should the .sty (and Fd) files be put so that TeXworks will find them?  And will the TU issue then resolve itself?
84121
I wanted to use Monaco.ttf with IntelliJ. Unfortunately it doesn't show up.  I also noticed that the Monaco font doesn't appear in the list of fonts got from awt:  java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()   I installed Monaco.ttf  in /usr/share/fonts/truetype/osx  I also tried to copy it in /usr/lib/jvm/java-6-sun/jre/lib/fonts and even tried to manually update the /usr/lib/jvm/java-6-sun/jre/lib/fonts/fonts.dir file  I restarted the jvm at each try, but the fonts is not visible from the sun jdk.  All other applications see that font (even eclipse, which is in java but uses the SWT library)  Does anybody know how to make jdk see additional fonts?
2461
When I install "Installer for Microsoft TrueType core fonts" (ttf-mscorefonts-installer) from the Software Center on 14.04, it gives a positive response--but after this I get a download error. It seems that the files actually providing the fonts are never retrieved. Is there any way to resolve this?
82787
I freshly installed 'basic' version of TeX Live 2012 (not full, only basic version).  I have following line in my code: \usepackage[T1]{fontenc}  I get following error:  (/usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2012/texmf-dist/tex/latex/base/t1enc.def) /usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty:100: Font T1/cmr/ m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not found. &lt;to be read again&gt;                     relax  l.100 \fontencoding\encodingdefault\selectfont  /usr/local/texlive/2012/texmf-dist/tex/latex/base/fontenc.sty:100:  ==&gt; Fatal error occurred, no output PDF file produced!   I understand that some packages are missing, however I do not know which ones.  Also, solution to this problem on most of the earlier posts is to install ubuntu latex recommended package, however please note that I am not using LaTeX from Ubuntu's software center (which is old TeX Live 2009) but rather have manually installed basic version of TeX Live 2012 as per instructions here:   Please let me know how do I solve this issue (I don't want to install complete version of TeX Live 2012, only those packages necessary to run this piece of code).
10738
Connecting to a remote Solaris 10 system over X11 I observe inconsistent behavior regarding the used fonts. I am connecting from a  system.  When I connect using ssh forwarding like this  $ ssh -Y mymachine.example.org   fonts work as expected, i.e. the rendering is very nice and programs seem to find all kind of different fonts (e.g. gvim or emacs).  When I connect to the same machine via XDMCP (to the stock blue Solaris 10 login manager screen) and login there seems only 1 fixed size font available. An Emacs from OpenCSW even fails to execute because it can't find the fonts it needs.  It prints that it can't find a font using following specification:  -dt-interface user-medium-r-normal-m   I establish the XDMCP connection like this:  $ XWin -query mymachine.example.org -from mywindowsclient.example.org   My objective is no to get also proper fonts for the XDMCP use case.  How can I investigate this issue? Can I duplicate some configuration which is implicitly used with ssh -Y for the XDMCP case?  How is the font-thing usually setup during ssh-X11-forwarding?
28015
Microsoft TTF-fonts such as Calibri and Cambria aren't rendered correctly at certain page zoom levels:    (I installed the Microsoft fonts manually by placing them in the ~/.fonts directory and updating the font cache).  Is there any way to improve Microsoft font rendering under LibreOffice?
62657
Background  There is a .cls file that pdflatex should use. I have read the following         Using TeX Live 2012, installed into /usr/local/texlive/.  I would like to install the .cls file into $HOME/.texmf (or some other non-standard directory), rather than $HOME/texmf. I thought this would be:  mkdir $HOME/.texmf initexmf --register-root=$HOME/.texmf sudo /usr/local/texlive/2012/bin/x86_64-linux/tlmgr conf texmf TEXMFHOME $HOME/.texmf mv amazingbook.cls $HOME/.texmf latex amazing-stories-1.tex   Problem  The initexmf program does not exist (in TeX Live 2012). I have read that the mktexlsr command is equivalent to initexmf.  Update  Ran:  mktexlsr $HOME/.texmf mv amazingbook.cls $HOME/.texmf mktexlsr $HOME/.texmf   The .cls file cannot be found when running:  pdflatex amazing-stories-1.tex   Question  What are the exact steps necessary to install a custom .cls file into a given directory and configure the environment so that the .cls file is visible from LaTeX using TeX Live 2012?
109420
I'm new to TeX. I have the following problem: How can I load a font from a file in a directory, which is located in the root of the project?  Say I have something like:   /project   /fonts     DancingScript-Regular.ttf   main.tex   DancingScript-Regular.ttf   Loading it when it's right on the root seems to work.  %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode  \documentclass[a4paper,12pt]{book} \usepackage{fontspec} \setromanfont{DancingScript-Regular.ttf} \begin{document}  hello world  \end{document}   However I can't figure how to load it when it's in the fonts directory. I've tried ./fonts/DancingScript-Regular.ttf, fonts/DancingScript-Regular.ttf, "fonts/DancingScript-Regular.ttf" and file:./fonts/DancingScript-Regular.ttf. None of them work.  All guides seem to focus on some sort of "how to install the font" but I can't work with that since the fonts may change (regularly) and would cause a sort of font version hell; it's also not very version control friendly. The  doesn't seem to cover using your own fonts either.  Also, can I load the fonts as a sort of preset/alias? Since for a lot I have basically font families, so around 10 variants (oblique, bold, bold oblique, regular, etc). I would like to avoid repeating a declaration if possible.
73785
I've tried following the instructions at  But, when I try to run the small file  \documentclass{article} \usepackage{fontspec} \newfontfamily\myfont{Lucida Calligraphy} \begin{document}  Hello \myfont Hello  \end{document}   I get the following error  xdvipdfmx:fatal: Cannot proceed without the font: /Library/Fonts/Microsoft/Lucida Calligraphy   The font is in that directory.  I found the following similar request  But I'm not finding the provided answer very helpful: I don't know what fondu is, nor, even if I did have this utility(?), I don't know how to use and am very nervous about tinkering in a library which is not specific to the user.
58038
is shipped out with TeX Live, but not with MiKTeX, not even with a full installation.  Do you nonetheless know a way for manual installation? MiKTeX needs to know the path of the sty files, and the Asymptote binary file needs to know the path of the asy scripts. Thought of adding the Asymptote folder to the list of registered root directories in MiKTeX, but MiKTeX complains, that this would be “Not a TDS-compliant root directory”.  There is already a similar question: .
86465
For debugging purposes, I need to recursively search a directory for all files which start with a UTF-8 byte order mark (BOM). My current solution is a simple shell script:  find -type f | while read file do     if [ "`head -c 3 -- "$file"`" == $'\xef\xbb\xbf' ]     then         echo "found BOM in: $file"     fi done  Or, if you prefer short, unreadable one-liners:  find -type f|while read file;do [ "`head -c3 -- "$file"`" == $'\xef\xbb\xbf' ] && echo "found BOM in: $file";done  It doesn't work with filenames that contain a line break, but such files are not to be expected anyway.  Is there any shorter or more elegant solution?  Are there any interesting text editors or macros for text editors?
16077
I want to embed fonts in my WinForms application so that I don't have to worry about them being installed on the machine. I've searched a bit on the MSDN site and found a few hints about using native Windows API calls, for instance Michael Caplan's (sp?) tutorial linked to by Scott Hanselman. Now, do I really have to go through all that trouble? Can't I just use the resource part of my app? If not I'll probably go the installing route. In that case, can I do that programmatically? By just copying the font file to the Windows\Fonts folder? I am aware of licensing issues.