WinEdtWinedt 6 XeTeX and Font otf

Information and discussion about WinEdt, a commercial integrated LaTeX environment for Windows
Post Reply
gwada74
Posts: 42
Joined: Fri Nov 26, 2010 5:28 pm

Winedt 6 XeTeX and Font otf

Post by gwada74 »

Hi,

I am to publish a book, and the editor requires that I use Garamont Pro Font, he provides me the .otf files. I know that with XeTex, there is a possibility to convert the files in tfm.
My questions are :
1- How do I include my .otf file with Winedt ?
2- Do I need to convert the .otf in .tfm ?
3- How Do I configure the font Garamond Pro once installed in Winedt?

Thanks in advance.
Last edited by gwada74 on Sun Dec 26, 2010 3:42 pm, edited 1 time in total.

Recommended reading 2024:

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

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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Winedt 6 XeTeX and Font otf

Post by meho_r »

With XeTeX you can use all .otf and .ttf fonts which are installed on your system directly, without conversion. The usage is explained in fontspec documentation.

Here's a minimal example:

Code: Select all

\documentclass{book}

\usepackage[T1]{fontenc}

\usepackage{fontspec}

\defaultfontfeatures{Ligatures=TeX,Numbers=OldStyle}

\setmainfont{Adobe Garamond Pro}

\usepackage{lipsum}

\begin{document}

Dashes: -, --, ---; -, –, —

Ligatures: fi, ffi, ft, fl, Th

Numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

\lipsum[1-2]

\end{document}
gwada74
Posts: 42
Joined: Fri Nov 26, 2010 5:28 pm

Re: Winedt 6 XeTeX and Font otf

Post by gwada74 »

thank you very much, that is very helpful !
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Winedt 6 XeTeX and Font otf

Post by localghost »

Now that the problem seems to be solved, please be so kind and mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules. Otherwise please tell us what is missing. Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply