Git Product home page Git Product logo

fontspec's Introduction

The FONTSPEC package

The fontspec package provides an automatic and unified interface for loading fonts in LaTeX. XeTeX and LuaTeX (the latter through the luaotfload package) allows a direct interface to fonts which may be loaded by their name or filename, so no manual font installation is required.

This package also provides access to the large number of font features available with OpenType (and other) fonts, including upper and lower case numbers, proportional and monospaced numbers, swash letters, ligature control, and many many others.

Documentation

See the PDF documentation for complete user information (including examples):

texdoc fontspec

Additional online documentation is provided at: http://latex3.github.io/fontspec/

The package code is documented in typeset PDF form via

texdoc fontspec-code

Licence

This package is distributed under the terms and conditions of the LaTeX Project Public License (LPPL), version 1.3a or higher.

The maintainer of the package is Will Robertson and the LaTeX3 project.

Summary of user commands

To define commands for selecting fonts efficiently through a document:

\newfontfamily\<font switch>{<font name>}[<font options>]
\newfontface  \<font switch>{<font name>}[<font options>]

To select the default document fonts:

\setmainfont{<font name>}[<font options>]
\setsansfont{<font name>}[<font options>]
\setmonofont{<font name>}[<font options>]

To define an ad hoc font family individually:

\fontspec{<font name>}[<font options>]

To specify features to be used for every subsequently defined font:

\defaultfontfeatures{<default font options>}
\defaultfontfeatures+{<add to default font options>}

To specify features to be used for specific fonts:

\defaultfontfeatures[<font name or switch>]{<default font options>}
\defaultfontfeatures+[<font name or switch>]{<add to defaults>}

To add features to the font family currently in use:

\addfontfeatures{<font options to add>}

Package details

Release versions of fontspec are available from CTAN: http://www.ctan.org/pkg/fontspec

Development and historical versions are available from Github: http://github.com/latex3/fontspec

Please offer suggestions and file bug reports in the issue tracker: http://github.com/latex3/fontspec/issues

If you are running TeX Live, you can update to the latest version of this package by running

tlmgr install fontspec

If you wish to manually download the latest release version from CTAN, get the pre-built TDS package and extract it into your local texmf tree:

http://mirror.ctan.org/install/macros/unicodetex/latex/fontspec.tds.zip

Historical releases are available via GitHub:
https://github.com/latex3/fontspec/releases
https://github.com/latex3/fontspec/tags

If you wish to use the latest development version from Github, use git to obtain the latest repository code with

git clone git://github.com/latex3/fontspec.git

Having obtained the package from Github, install the package code by running

l3build install

This will compile the documentation and install all necessary files in your local texmf tree. Depending how your TeX distribution is configured you may then need to update the filename database with texhash.

fontspec's People

Contributors

wspr avatar khaledhosny avatar josephwright avatar zauguin avatar eroux avatar muzimuzhi avatar lemzwerg avatar switwu avatar u-fischer avatar dependabot[bot] avatar timothygu avatar qinglee avatar mpg avatar chrullrich avatar davidcarlisle avatar dohyunkim avatar dfc avatar e-kwsm avatar isaacoscar avatar alt avatar jfbu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.