Fonts & Character SetsHow do I install fonts?

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
thesourceofx
Posts: 10
Joined: Mon Sep 14, 2009 11:53 pm

How do I install fonts?

Post by thesourceofx »

Okay, so this is getting kind of silly, but I must have looked at 6 different tutorials, at least, on how to install fonts for LaTeX, and I still don't know how to do it. I downloaded a font from The LaTeX Font Catalogue, which comes with all of the files needed to use the font without compiling anything extra, I just have no idea how to get LaTeX to know that I have it. I got LaTeX from TeXLive on Windows Vista. Can anyone tell me how to get the font to work?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: How do I install fonts?

Post by frabjous »

If you did a full install of TeXlive, most of the fonts from that Catalogue should already be installed; you shouldn't need to do anything extra. But what font in particular did you want to use?
thesourceofx
Posts: 10
Joined: Mon Sep 14, 2009 11:53 pm

How do I install fonts?

Post by thesourceofx »

I'm in a place with a horrible internet connection right now, which is why I didn't do the full install. If I had then I would have been waiting probably around 2 full days for it to download everything it needed. The font I want to install right now is LX Fonts. However, I want to know how to install fonts in general so that I can do it for others if I get any later. If you can tell me how to install just LX Fonts then that would be great, but something more general would be really appreciated overall. =]
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: How do I install fonts?

Post by frabjous »

I've never used TeXlive on Windows, and certainly not a less than full version, but did yours come with the TeXlive Manager (2008) (tlmgr)? If so, you could probably install through there.
thesourceofx
Posts: 10
Joined: Mon Sep 14, 2009 11:53 pm

Re: How do I install fonts?

Post by thesourceofx »

I do have tlmgr, but I have no idea how to use it. Could you tell me what commands I need to give it?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: How do I install fonts?

Post by frabjous »

On mine, if you put in:

tlmgr --gui

You get a nice user-interface. One of the tabs is for adding packages. I think adding the lxfonts package should do it.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How do I install fonts?

Post by localghost »

TeX Live under Windows causes many trouble. On my notebook with Windows Vista the TeX Live Manager refuses to work despite an installed Perl interpreter. Perhaps the TeX Live Manager documentation will help [1]. According to the explanations the following line in a command prompt should do.

Code: Select all

tlmgr install lxfonts
Hopefully TeX Live 2009 will work better.

As frabjous already mentioned, the package might already be on your machine. You can check that on the command prompt.

Code: Select all

kpsewhich lxfonts.sty
With no output the package is not installed. Otherwise you will get the full path to the package file.


[1] tlmgr - the TeX Live Manager


Best regards and welcome to the board
Thorsten
thesourceofx
Posts: 10
Joined: Mon Sep 14, 2009 11:53 pm

Re: How do I install fonts?

Post by thesourceofx »

I am pretty sure that the package wasn't installed already because when I compiled with it I got an error telling me that the .sty file was missing. As for the manager, I tried getting it to work, but I haven't had enough time to really make sure that it installed the font properly. I will, however, try later today and hopefully that will work. It could also be that I'm using the package incorrectly. Do I just add the lines

\usepackage[T1]{fontenc}
\usepackage{lxfonts}

before \begin{document}?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How do I install fonts?

Post by gmedina »

thesourceofx wrote:...Do I just add the lines

\usepackage[T1]{fontenc}
\usepackage{lxfonts}

before \begin{document}?
Yes. If the fonts are properly installed, that should be enough.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
thesourceofx
Posts: 10
Joined: Mon Sep 14, 2009 11:53 pm

Re: How do I install fonts?

Post by thesourceofx »

okay...so I tried installing the font with tlmgr both ways (command line and gui) and when I search my comp for lxfonts I get nothing. I'm guessing here that tlmgr doesn't work. If that is the case, could someone just tell me where to put the .mf, .tmf, .fd, and .sty files (or any other files that are requirements for it to work) and I can do it manually?
Post Reply