├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml ├── tl_packages └── workflows │ ├── doc.yaml │ ├── pages.yml │ ├── release.yaml │ └── testing.yaml ├── .gitignore ├── COPYRIGHT ├── LICENSE ├── MANIFEST.md ├── README.md ├── _config.yml ├── autorelease.lua ├── build.lua ├── doc ├── CHANGES.md ├── dev.md ├── index.md ├── install.md └── user.md ├── fontspec-code-api.dtx ├── fontspec-code-closing.dtx ├── fontspec-code-enc.dtx ├── fontspec-code-feat-aat.dtx ├── fontspec-code-feat-opentype.dtx ├── fontspec-code-fontload.dtx ├── fontspec-code-graphite.dtx ├── fontspec-code-interfaces.dtx ├── fontspec-code-internal.dtx ├── fontspec-code-keyval.dtx ├── fontspec-code-lang.dtx ├── fontspec-code-load.dtx ├── fontspec-code-math.dtx ├── fontspec-code-msg.dtx ├── fontspec-code-opening.dtx ├── fontspec-code-opentype.dtx ├── fontspec-code-scripts.dtx ├── fontspec-code-user.dtx ├── fontspec-code-vars.dtx ├── fontspec-code-xfss.dtx ├── fontspec-code.ltx ├── fontspec-doc-api.tex ├── fontspec-doc-enc.tex ├── fontspec-doc-featset.tex ├── fontspec-doc-fontsel.tex ├── fontspec-doc-intro.tex ├── fontspec-doc-luatex.tex ├── fontspec-doc-opentype.tex ├── fontspec-doc-style.sty ├── fontspec-doc-xetex.tex ├── fontspec-example.tex ├── fontspec-lua.dtx ├── fontspec.cfg ├── fontspec.dtx ├── fontspec.ins ├── fontspec.ltx ├── githooks ├── enable-githooks.sh └── post-commit ├── support └── texmf.cnf ├── testfiles-disabled ├── 01-pkg-load-um.luatex.tlg ├── 01-pkg-load-um.lvt ├── 01-pkg-load-um.xetex.tlg ├── feat-cvxx-1.lvt ├── feat-cvxx-2.lvt ├── fontload-sizefeatures-3-scfeat.luatex.tlg ├── fontload-sizefeatures-3-scfeat.lvt ├── fontload-sizefeatures-3-scfeat.tlg ├── old tests │ ├── F-autofake.ltx │ ├── F-colour-clash.ltx │ ├── F-loading-external-underdefined.ltx │ ├── F-verb-fancyvrb.ltx │ ├── F-verb-listings.ltx │ ├── F-verb-moreverb.ltx │ ├── F-verb-plain.ltx │ ├── F-verb-verbatim.ltx │ └── X-new-font-feature.ltx ├── pkg-mathspec.luatex.tlg ├── pkg-mathspec.lvt ├── pkg-mathspec.xetex.tlg └── testfiles-too-much-log │ ├── patch-fnsymbol.luatex.tlg │ ├── patch-fnsymbol.lvt │ └── patch-fnsymbol.xetex.tlg ├── testfiles ├── 0-pkg-load.luatex.tlg ├── 0-pkg-load.lvt ├── 0-pkg-load.tlg ├── 00-pkg-load-babel.luatex.tlg ├── 00-pkg-load-babel.lvt ├── 00-pkg-load-babel.tlg ├── 00-pkg-load-eu.luatex.tlg ├── 00-pkg-load-eu.lvt ├── 00-pkg-load-eu.tlg ├── 00-pkg-load-tu.luatex.tlg ├── 00-pkg-load-tu.lvt ├── 00-pkg-load-tu.tlg ├── 00-pkg-load-twice.luatex.tlg ├── 00-pkg-load-twice.lvt ├── 00-pkg-load-twice.tlg ├── 02-pkg-load-predocclass.luatex.tlg ├── 02-pkg-load-predocclass.lvt ├── 02-pkg-load-predocclass.tlg ├── 03-pkg-load-global-math.lvt ├── 03-pkg-load-global-math.tlg ├── aff-group.luatex.tlg ├── aff-group.lvt ├── aff-group.tlg ├── aff-italic-only.luatex.tlg ├── aff-italic-only.lvt ├── aff-italic-only.tlg ├── aff-numbers.luatex.tlg ├── aff-numbers.lvt ├── aff-numbers.tlg ├── aff-sc-repeated.luatex.tlg ├── aff-sc-repeated.lvt ├── aff-sc-repeated.tlg ├── api-assorted.luatex.tlg ├── api-assorted.lvt ├── api-assorted.tlg ├── api-font-if-exist.luatex.tlg ├── api-font-if-exist.lvt ├── api-font-if-exist.tlg ├── api-if-current-feature.luatex.tlg ├── api-if-current-feature.lvt ├── api-if-current-feature.tlg ├── api-if-feature.luatex.tlg ├── api-if-feature.lvt ├── api-if-feature.tlg ├── api-if-font-feature-active.luatex.tlg ├── api-if-font-feature-active.lvt ├── api-if-font-feature-active.tlg ├── api-if-small-caps.luatex.tlg ├── api-if-small-caps.lvt ├── api-if-small-caps.tlg ├── api-script.luatex.tlg ├── api-script.lvt ├── api-script.tlg ├── api-tag-too-long.luatex.tlg ├── api-tag-too-long.lvt ├── api-tag-too-long.tlg ├── colour-basic.luatex.tlg ├── colour-basic.lvt ├── colour-basic.tlg ├── colour-model.luatex.tpf ├── colour-model.pvt ├── colour-model.tpf ├── colour-opacity.luatex.tlg ├── colour-opacity.lvt ├── colour-opacity.tlg ├── colour-spotcolor.luatex.tpf ├── colour-spotcolor.pvt ├── colour-spotcolor.tpf ├── em-declare.luatex.tlg ├── em-declare.lvt ├── em-declare.tlg ├── em-innershape.luatex.tlg ├── em-innershape.lvt ├── em-innershape.tlg ├── em.luatex.tlg ├── em.lvt ├── em.tlg ├── enc-T1-default.luatex.tlg ├── enc-T1-default.lvt ├── enc-T1-default.tlg ├── enc-new-enc.luatex.tlg ├── enc-new-enc.lvt ├── enc-new-enc.tlg ├── feat-LocalForms.luatex.tlg ├── feat-LocalForms.lvt ├── feat-LocalForms.tlg ├── feat-hyphenchar.luatex.tlg ├── feat-hyphenchar.lvt ├── feat-hyphenchar.tlg ├── feat-number-multichoice.luatex.tlg ├── feat-number-multichoice.lvt ├── feat-number-multichoice.tlg ├── feat-punctspace.luatex.tlg ├── feat-punctspace.lvt ├── feat-punctspace.tlg ├── feat-reset.luatex.tlg ├── feat-reset.lvt ├── feat-reset.tlg ├── feat-scale-again.luatex.tlg ├── feat-scale-again.lvt ├── feat-scale-again.tlg ├── feat-scale-match.luatex.tlg ├── feat-scale-match.lvt ├── feat-scale-match.tlg ├── feat-ss06.luatex.tlg ├── feat-ss06.lvt ├── feat-ss06.tlg ├── feat-wordspace.luatex.tlg ├── feat-wordspace.lvt ├── feat-wordspace.tlg ├── fontface-overwrite.luatex.tlg ├── fontface-overwrite.lvt ├── fontface-overwrite.tlg ├── fontface-spaces.luatex.tlg ├── fontface-spaces.lvt ├── fontface-spaces.tlg ├── fontload-defaults-adding.luatex.tlg ├── fontload-defaults-adding.lvt ├── fontload-defaults-adding.tlg ├── fontload-defaults-boldfeatures.luatex.tlg ├── fontload-defaults-boldfeatures.lvt ├── fontload-defaults-boldfeatures.tlg ├── fontload-defaults-change.luatex.tlg ├── fontload-defaults-change.lvt ├── fontload-defaults-change.tlg ├── fontload-defaults.luatex.tlg ├── fontload-defaults.lvt ├── fontload-defaults.tlg ├── fontload-ext-mixed.luatex.tlg ├── fontload-ext-mixed.lvt ├── fontload-ext-mixed.tlg ├── fontload-ext.luatex.tlg ├── fontload-ext.lvt ├── fontload-ext.tlg ├── fontload-fontface-1.luatex.tlg ├── fontload-fontface-1.lvt ├── fontload-fontface-1.tlg ├── fontload-fontface-2-sc.luatex.tlg ├── fontload-fontface-2-sc.lvt ├── fontload-fontface-2-sc.tlg ├── fontload-fontface-3-sizing.luatex.tlg ├── fontload-fontface-3-sizing.lvt ├── fontload-fontface-3-sizing.tlg ├── fontload-fontname.luatex.tlg ├── fontload-fontname.lvt ├── fontload-fontname.tlg ├── fontload-fontspec-file-case.luatex.tlg ├── fontload-fontspec-file-case.lvt ├── fontload-fontspec-file-case.tlg ├── fontload-fontspec-file.luatex.tlg ├── fontload-fontspec-file.lvt ├── fontload-fontspec-file.tlg ├── fontload-mainsans.luatex.tlg ├── fontload-mainsans.lvt ├── fontload-mainsans.tlg ├── fontload-mathetc.luatex.tlg ├── fontload-mathetc.lvt ├── fontload-mathetc.tlg ├── fontload-nfssfamily-1.luatex.tlg ├── fontload-nfssfamily-1.lvt ├── fontload-nfssfamily-1.tlg ├── fontload-nfssfamily-2.luatex.tlg ├── fontload-nfssfamily-2.lvt ├── fontload-nfssfamily-2.tlg ├── fontload-onesize-nosc.luatex.tlg ├── fontload-onesize-nosc.lvt ├── fontload-onesize-nosc.tlg ├── fontload-scfeat-nesting.luatex.tlg ├── fontload-scfeat-nesting.lvt ├── fontload-scfeat-nesting.tlg ├── fontload-sizefeatures-1.luatex.tlg ├── fontload-sizefeatures-1.lvt ├── fontload-sizefeatures-1.tlg ├── fontload-sizefeatures-2-nesting.luatex.tlg ├── fontload-sizefeatures-2-nesting.lvt ├── fontload-sizefeatures-2-nesting.tlg ├── fontload-sl-fsfile.luatex.tlg ├── fontload-sl-fsfile.lvt ├── fontload-sl-fsfile.tlg ├── fontload-sl.luatex.tlg ├── fontload-sl.lvt ├── fontload-sl.tlg ├── fontload-swash-1.luatex.tlg ├── fontload-swash-1.lvt ├── fontload-swash-1.tlg ├── fontload-swash-2.luatex.tlg ├── fontload-swash-2.lvt ├── fontload-swash-2.tlg ├── fontload-trimspace.luatex.tlg ├── fontload-trimspace.lvt ├── fontload-trimspace.tlg ├── fontload-ttc-fontindex.luatex.tlg ├── fontload-ttc-fontindex.lvt ├── fontload-ttc-fontindex.tlg ├── fontload-ttc.luatex.tlg ├── fontload-ttc.lvt ├── fontload-ttc.tlg ├── fontload-variable.luatex.tlg ├── fontload-variable.lvt ├── fontload-variable.tlg ├── graphite-awami.luatex.tlg ├── graphite-awami.lvt ├── graphite-awami.tlg ├── italicfeatures-concat.luatex.tlg ├── italicfeatures-concat.lvt ├── italicfeatures-concat.tlg ├── luatex-subs.luatex.tlg ├── luatex-subs.lvt ├── luatex-subs.tlg ├── mergeshapes.luatex.tlg ├── mergeshapes.lvt ├── mergeshapes.tlg ├── newfontfamily.luatex.tlg ├── newfontfamily.lvt ├── newfontfamily.tlg ├── path.luatex.tlg ├── path.lvt ├── path.tlg ├── polyglossia-add-script.luatex.tlg ├── polyglossia-add-script.lvt ├── polyglossia-add-script.tlg ├── polyglossia-cyrl.luatex.tlg ├── polyglossia-cyrl.lvt ├── polyglossia-cyrl.tlg ├── primitive-if-exist.luatex.tlg ├── primitive-if-exist.lvt ├── primitive-if-exist.tlg ├── script-lang-chinese.luatex.tlg ├── script-lang-chinese.lvt ├── script-lang-chinese.tlg ├── script-lang-feat-fallback.luatex.tlg ├── script-lang-feat-fallback.lvt ├── script-lang-feat-fallback.tlg ├── script-lang-hebr.luatex.tlg ├── script-lang-hebr.lvt ├── script-lang-hebr.tlg ├── script-lang-trk.luatex.tlg ├── script-lang-trk.lvt ├── script-lang-trk.tlg ├── script-lang.luatex.tlg ├── script-lang.lvt ├── script-lang.tlg ├── script-no-script.luatex.tlg ├── script-no-script.lvt ├── script-no-script.tlg ├── script.luatex.tlg ├── script.lvt ├── script.tlg ├── small-caps-lang.luatex.tlg ├── small-caps-lang.lvt ├── small-caps-lang.tlg ├── strong-fontface.luatex.tlg ├── strong-fontface.lvt ├── strong-fontface.tlg ├── support │ ├── Fonts │ │ ├── OFL.txt │ │ ├── Pacifico-Regular.ttf │ │ └── PoetsenOne-Regular.ttf │ ├── fontspec-testsetup.tex │ ├── luaotfload.conf │ └── regression-test.cfg ├── unicode-math.luatex.tlg ├── unicode-math.lvt ├── unicode-math.tlg ├── user-alias-feature-option.luatex.tlg ├── user-alias-feature-option.lvt ├── user-alias-feature-option.tlg ├── user-alias-feature.luatex.tlg ├── user-alias-feature.lvt ├── user-alias-feature.tlg ├── user-new-ot-feature.luatex.tlg ├── user-new-ot-feature.lvt ├── user-new-ot-feature.tlg ├── user-nums-junicode.luatex.tlg ├── user-nums-junicode.lvt ├── user-nums-junicode.tlg ├── user-nums-textcomp.luatex.tlg ├── user-nums-textcomp.lvt ├── user-nums-textcomp.tlg ├── user-nums.luatex.tlg ├── user-nums.lvt ├── user-nums.tlg ├── xetex-mapping-lig.luatex.tlg ├── xetex-mapping-lig.lvt └── xetex-mapping-lig.tlg ├── testsetup ├── install-customfonts.sh ├── install-texlive.sh └── texlive.profile └── texmf └── fonts ├── opentype └── fontspec-test-fonts └── truetype └── fontspec-test-fonts /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Description 2 | A sentence or two describing the issue. 3 | 4 | ## Check/indicate 5 | - [ ] Relevant for XeTeX 6 | - [ ] Relevant for LuaTeX 7 | - [ ] Issue tracker has been searched for similar issues? 8 | - [ ] Links to discussion if appropriate 9 | 10 | ## Minimal example demonstrating the issue 11 | ``` 12 | \documentclass{article} 13 | \usepackage{unicode-math} 14 | \setmainfont{texgyrepagella}[ 15 | Extension = .otf , 16 | UprightFont = *-regular.otf , 17 | ItalicFont = *-italic.otf , 18 | ] 19 | \begin{document} 20 | hello \emph{hello} 21 | \end{document} 22 | ``` 23 | 24 | ## Further details 25 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Status 2 | **READY/UNDER DEVELOPMENT/FOR DISCUSSION** 3 | 4 | ## Description 5 | A few sentences describing the overall goals of the pull request's commits. 6 | 7 | ## Todos 8 | - [ ] Tests added to cover new/fixed functionality 9 | - [ ] Documentation if necessary 10 | - [ ] Code follows expl3 style guidelines 11 | 12 | ## Minimal example demonstrating the new/fixed functionality 13 | ``` 14 | \documentclass{article} 15 | \usepackage{unicode-math} 16 | \setmainfont{texgyrepagella}[ 17 | Extension = .otf , 18 | UprightFont = *-regular.otf , 19 | ItalicFont = *-italic.otf , 20 | ] 21 | \begin{document} 22 | hello \emph{hello} 23 | \end{document} 24 | ``` 25 | 26 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "github-actions" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "weekly" 12 | -------------------------------------------------------------------------------- /.github/tl_packages: -------------------------------------------------------------------------------- 1 | # l3build itself and LuaTeX: need for texlua 2 | l3build luatex texlive-scripts 3 | 4 | # Required to build plain and LaTeX formats: 5 | # TeX90 plain for unpacking 6 | cm etex knuth-lib latex-bin tex tex-ini-files unicode-data 7 | xetex 8 | 9 | # Dependencies 10 | geometry 11 | graphics 12 | graphics-def 13 | luatexbase 14 | ctablestack 15 | iftex 16 | luaotfload 17 | oberdiek 18 | ltxcmds 19 | kvsetkeys 20 | ucharcat 21 | filehook 22 | xcolor 23 | babel 24 | babel-english 25 | unicode-math 26 | polyglossia 27 | hyph-utf8 28 | epstopdf-pkg 29 | lualatex-math 30 | mathspec 31 | makeindex 32 | 33 | # Fonts 34 | asana-math 35 | cm-unicode 36 | ebgaramond 37 | fandol 38 | fira 39 | firamath 40 | gfsporson 41 | lato 42 | libertine 43 | librecaslon 44 | lm-math 45 | plex 46 | sourcecodepro 47 | stix2-otf 48 | tempora 49 | tex-gyre 50 | tex-gyre-math 51 | ysabeau 52 | 53 | # for docs 54 | alphalph 55 | amsmath 56 | amsfonts 57 | booktabs 58 | caption 59 | colortbl 60 | csquotes 61 | docmute 62 | enumitem 63 | fancyvrb 64 | framed 65 | hologo 66 | hyperref 67 | hypdoc 68 | inconsolata 69 | kurier 70 | luatex85 71 | microtype 72 | oberdiek 73 | psnfss 74 | standalone 75 | symbol 76 | tocloft 77 | tools 78 | underscore 79 | url 80 | varwidth 81 | zapfding 82 | -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- 1 | name: Create release 2 | 3 | on: 4 | push: 5 | tags: 6 | - "**" 7 | 8 | jobs: 9 | ctan: 10 | runs-on: ubuntu-latest 11 | name: Build CTAN release 12 | environment: Release 13 | steps: 14 | - name: Checkout repository 15 | uses: actions/checkout@v4 16 | - name: Install TeX Live 17 | uses: zauguin/install-texlive@v4 18 | with: 19 | package_file: .github/tl_packages 20 | - name: Checkout fonts for testing 21 | uses: actions/checkout@v4 22 | with: 23 | repository: wspr/fontspec-test-fonts 24 | path: fontspec-test-fonts 25 | - name: Install fonts for testing 26 | run: ./fontspec-test-fonts/install.sh 27 | - name: Run l3build 28 | run: l3build ctan -q -H 29 | # Now create the release (this only runs if the previous steps were successful) 30 | - name: Create GitHub release 31 | uses: ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # v1.16.0 32 | id: release 33 | with: 34 | artifacts: "build/distrib/ctan/*.zip" 35 | token: ${{ secrets.GITHUB_TOKEN }} 36 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | build/ 3 | 4 | *.DS_Store 5 | *.glo 6 | *.idx 7 | *.out 8 | *.toc 9 | *.fontspec 10 | *.otf 11 | *.aux 12 | *.log 13 | *.pdf 14 | *.sty 15 | *synctex* 16 | *.zip 17 | 18 | test*.tex 19 | 20 | fontspec/ 21 | testsuite/build/ 22 | testsuite/fonts/ 23 | testsuite/tests/*.pdf 24 | doc-files/ 25 | 26 | fontspec.lua 27 | fontspec.pdf 28 | 29 | lucidaot.tex 30 | 31 | # for local (in-place) doc typesetting: 32 | zzz-* 33 | 34 | *.hd 35 | 36 | *.curlopt 37 | 38 | /fontspec-test-fonts 39 | -------------------------------------------------------------------------------- /COPYRIGHT: -------------------------------------------------------------------------------- 1 | % ------------------------------------------------ 2 | % The FONTSPEC package 3 | % ------------------------------------------------ 4 | % Copyright 2022-2024 The LaTeX project, LPPL "maintainer" 5 | % Copyright 2004-2022 Will Robertson 6 | % Copyright 2009-2015 Khaled Hosny 7 | % Copyright 2013 Philipp Gesang 8 | % Copyright 2013-2016 Joseph Wright 9 | % ------------------------------------------------ 10 | % This package is free software and may be redistributed and/or modified under 11 | % the conditions of the LaTeX Project Public License, version 1.3c or higher 12 | % (your choice): . 13 | % ------------------------------------------------ 14 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | title: The FONTSPEC package for XeLaTeX and LuaLaTeX 2 | description: Package and repository documentation 3 | show_downloads: true 4 | theme: jekyll-theme-modernist 5 | -------------------------------------------------------------------------------- /doc/install.md: -------------------------------------------------------------------------------- 1 | 2 | Manual package installation 3 | --------------------------- 4 | 5 | If you are running TeX Live, you can update to the latest version of this package by running 6 | 7 | tlmgr install fontspec 8 | 9 | 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: 10 | 11 | http://mirror.ctan.org/install/macros/latex/contrib/fontspec.tds.zip 12 | 13 | If you wish to use the latest development version from Github, use git to obtain the latest repository code with 14 | 15 | git clone git://github.com/latex3/fontspec.git 16 | 17 | See the `develop` branch for changes that have not been released to CTAN yet (no guarantees the code in that branch will always be fully functional). Having obtained the package from Github, install the package code by running 18 | 19 | l3build install 20 | 21 | This will compile the documentation and install all necessary files in your 22 | local texmf tree. Depending how your TeX distribution is configured 23 | you may then need to update the filename database with `texhash`. 24 | -------------------------------------------------------------------------------- /doc/user.md: -------------------------------------------------------------------------------- 1 | 2 | Summary of user commands 3 | ------------------------ 4 | 5 | To define commands for selecting fonts efficiently through a document: 6 | 7 | \newfontfamily\{}[] 8 | \newfontface \{}[] 9 | 10 | To select the default document fonts: 11 | 12 | \setmainfont{}[] 13 | \setsansfont{}[] 14 | \setmonofont{}[] 15 | 16 | To define an ad hoc font family individually: 17 | 18 | \fontspec{}[] 19 | 20 | To specify features to be used for every subsequently defined font: 21 | 22 | \defaultfontfeatures{} 23 | \defaultfontfeatures+{} 24 | 25 | To specify features to be used for specific fonts: 26 | 27 | \defaultfontfeatures[]{} 28 | \defaultfontfeatures+[]{} 29 | 30 | To add features to the font family currently in use: 31 | 32 | \addfontfeatures{} 33 | 34 | 35 | -------------------------------------------------------------------------------- /fontspec-code-closing.dtx: -------------------------------------------------------------------------------- 1 | %%^^A%% fontspec-code-closing.dtx -- part of FONTSPEC 2 | % 3 | % \section{Closing code} 4 | % 5 | % \iffalse 6 | % \begin{macrocode} 7 | %<*fontspec> 8 | % \end{macrocode} 9 | % \fi 10 | % 11 | % \subsection{Finishing up} 12 | % Now we just want to set up loading the \texttt{.cfg} file, if it exists. 13 | % \begin{macrocode} 14 | \bool_if:NT \g_@@_cfg_bool 15 | { 16 | \InputIfFileExists{fontspec.cfg} 17 | {} 18 | { \typeout{No~ fontspec.cfg~ file~ found;~ no~ configuration~ loaded.} } 19 | } 20 | % \end{macrocode} 21 | % 22 | % \iffalse 23 | % \begin{macrocode} 24 | % 25 | % \end{macrocode} 26 | % \fi 27 | 28 | 29 | \endinput 30 | 31 | % /© 32 | % ------------------------------------------------ 33 | % The FONTSPEC package 34 | % ------------------------------------------------ 35 | % Copyright 2022-2024 The LaTeX project, LPPL "maintainer" 36 | % Copyright 2004-2022 Will Robertson 37 | % Copyright 2009-2015 Khaled Hosny 38 | % Copyright 2013 Philipp Gesang 39 | % Copyright 2013-2016 Joseph Wright 40 | % ------------------------------------------------ 41 | % This package is free software and may be redistributed and/or modified under 42 | % the conditions of the LaTeX Project Public License, version 1.3c or higher 43 | % (your choice): . 44 | % ------------------------------------------------ 45 | % ©/ 46 | -------------------------------------------------------------------------------- /fontspec-code.ltx: -------------------------------------------------------------------------------- 1 | %%^^A%% fontspec-code.ltx -- part of FONTSPEC 2 | 3 | \ifdefined \XeTeXOTcountscripts \else \makeatletter 4 | \@latex@error{^^J*** The fontspec documentation can only be typeset with `xelatex` ***\@gobble}\@ehc 5 | \fi 6 | 7 | \documentclass[a4paper]{l3doc} 8 | \usepackage{fontspec-doc-style} 9 | \renewcommand\partname{File} 10 | \begin{document} 11 | \maketitle 12 | \tableofcontents 13 | \newpage 14 | 15 | \def\DTX#1{\clearpage\part{#1}\DocInput{#1}} 16 | \FONTSPECDTX 17 | 18 | \clearpage 19 | \PrintChanges 20 | 21 | \clearpage 22 | \setcounter{IndexColumns}{2} 23 | \PrintIndex 24 | 25 | \end{document} 26 | 27 | \endinput 28 | 29 | % /© 30 | % ------------------------------------------------ 31 | % The FONTSPEC package 32 | % ------------------------------------------------ 33 | % Copyright 2022-2024 The LaTeX project, LPPL "maintainer" 34 | % Copyright 2004-2022 Will Robertson 35 | % Copyright 2009-2015 Khaled Hosny 36 | % Copyright 2013 Philipp Gesang 37 | % Copyright 2013-2016 Joseph Wright 38 | % ------------------------------------------------ 39 | % This package is free software and may be redistributed and/or modified under 40 | % the conditions of the LaTeX Project Public License, version 1.3c or higher 41 | % (your choice): . 42 | % ------------------------------------------------ 43 | % ©/ 44 | -------------------------------------------------------------------------------- /fontspec.cfg: -------------------------------------------------------------------------------- 1 | 2 | 3 | %%% FONTSPEC.CFG %%% 4 | % 5 | % This configuration file sets up TeX Ligatures by default for all fonts loaded 6 | % with `\setmainfont` and `\setsansfont`. 7 | % 8 | % In addition, `\setmonofont` has default features to enforce "monospace" 9 | % settings with regard to space stretchability and shrinkability. 10 | % 11 | % Make a copy of this file in your own home TEXMF directory to set up your own 12 | % defaults. 13 | 14 | \defaultfontfeatures 15 | [\rmfamily,\sffamily] 16 | {Ligatures=TeX} 17 | 18 | \defaultfontfeatures 19 | [\ttfamily] 20 | {WordSpace={1,0,0}, 21 | HyphenChar=None, 22 | PunctuationSpace=WordSpace} 23 | -------------------------------------------------------------------------------- /fontspec.ltx: -------------------------------------------------------------------------------- 1 | %%^^A%% fontspec.ltx -- part of FONTSPEC 2 | 3 | \ifdefined \XeTeXOTcountscripts \else \makeatletter 4 | \@latex@error{^^J*** The fontspec documentation can only be typeset with `xelatex` ***\@gobble}\@ehc 5 | \fi 6 | 7 | \documentclass[a4paper]{l3doc} 8 | \usepackage{fontspec-doc-style} 9 | \begin{document} 10 | \maketitle 11 | \tableofcontents 12 | \newpage 13 | 14 | \include{fontspec-doc-intro} 15 | \include{fontspec-doc-fontsel} 16 | \include{fontspec-doc-featset} 17 | \include{fontspec-doc-opentype} 18 | \include{fontspec-doc-enc} 19 | \include{fontspec-doc-luatex} 20 | \include{fontspec-doc-xetex} 21 | \include{fontspec-doc-api} 22 | 23 | \end{document} 24 | 25 | \endinput 26 | 27 | % /© 28 | % ------------------------------------------------ 29 | % The FONTSPEC package 30 | % ------------------------------------------------ 31 | % Copyright 2022-2024 The LaTeX project, LPPL "maintainer" 32 | % Copyright 2004-2022 Will Robertson 33 | % Copyright 2009-2015 Khaled Hosny 34 | % Copyright 2013 Philipp Gesang 35 | % Copyright 2013-2016 Joseph Wright 36 | % ------------------------------------------------ 37 | % This package is free software and may be redistributed and/or modified under 38 | % the conditions of the LaTeX Project Public License, version 1.3c or higher 39 | % (your choice): . 40 | % ------------------------------------------------ 41 | % ©/ 42 | -------------------------------------------------------------------------------- /githooks/enable-githooks.sh: -------------------------------------------------------------------------------- 1 | ## ENABLE-GITHOOKS.SH 2 | 3 | git config core.hooksPath githooks 4 | -------------------------------------------------------------------------------- /githooks/post-commit: -------------------------------------------------------------------------------- 1 | ## POST-COMMIT 2 | 3 | # 1. 4 | # Updates copyright for Will to the current year. 5 | 6 | YEAR=`date +%Y` 7 | sed -i'.tmp' 's/\(2022\)-[0-9]* /\1-'$YEAR' /' COPYRIGHT 8 | rm COPYRIGHT.tmp 9 | 10 | for ii in *.ins *.tex *.ltx *.dtx ; do 11 | 12 | # 2. 13 | # Updates copyright statements between lines surrounded by: 14 | # % /© 15 | #. ... 16 | #. % ©/ 17 | # with the text in the file COPYRIGHT 18 | 19 | awk 'FNR==NR{ _[++d]=$0;next} 20 | /^% \/©$/{ 21 | print 22 | for(i=1;i<=d;i++){ print _[i] } 23 | f=1;next 24 | } 25 | /^% ©\/$/{f=0}!f' COPYRIGHT $ii > tmpfile 26 | 27 | mv tmpfile $ii 28 | 29 | # 3. 30 | # Updates the first line of the file to match the filename 31 | 32 | sed -i'.tmp' "1s/.*/%%^^A%% $ii -- part of FONTSPEC \/" $ii 33 | 34 | rm $ii.tmp 35 | 36 | done 37 | 38 | -------------------------------------------------------------------------------- /support/texmf.cnf: -------------------------------------------------------------------------------- 1 | TEXMFAUXTREES=../../texmf, 2 | -------------------------------------------------------------------------------- /testfiles-disabled/01-pkg-load-um.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles-disabled/01-pkg-load-um.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup} 2 | \usepackage{fontspec} 3 | \usepackage{unicode-math} 4 | \setmainfont{texgyrepagella-regular.otf} 5 | \setmathfont{texgyrepagella-math.otf} 6 | \begin{document} 7 | hello 8 | \[ a+b+c=1+2+3=\alpha+\beta+\gamma \] 9 | \MSG{Checking loading; no log file data expected.} 10 | \end{document} 11 | -------------------------------------------------------------------------------- /testfiles-disabled/01-pkg-load-um.xetex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles-disabled/feat-cvxx-1.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \fontspec{EBGaramond-Italic.otf} 9 | 10 | very \CURRNFSS 11 | {\addfontfeature{CharacterVariant=5}. very\CURRNFSS} 12 | {\addfontfeature{CharacterVariant=5:0} very\CURRNFSS} 13 | {\addfontfeature{CharacterVariant=5:1} very\CURRNFSS} 14 | {\addfontfeature{CharacterVariant=5:2} very\CURRNFSS} 15 | {\addfontfeature{CharacterVariant=5:3} very\CURRNFSS} 16 | 17 | \end{document} 18 | -------------------------------------------------------------------------------- /testfiles-disabled/feat-cvxx-2.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \usepackage{xcolor} 6 | 7 | \begin{document} 8 | 9 | \fontspec{EBGaramond-Italic.otf}% 10 | 11 | \& violet \CURRNFSS \\ 12 | {\addfontfeature{CharacterVariant={4}} \& violet \CURRNFSS }\\ 13 | {\addfontfeature{CharacterVariant={5:2}} \& violet \CURRNFSS }\\ 14 | {\addfontfeature{CharacterVariant={4,5:2}} \& violet \CURRNFSS } 15 | 16 | \end{document} 17 | -------------------------------------------------------------------------------- /testfiles-disabled/fontload-sizefeatures-3-scfeat.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;+tlig; at 9.0pt 4 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;+tlig; at 9.0pt 5 | [texgyreadventor-regular.otf]:mode=node;script=latn;language=dflt;+tlig; at 12.0pt 6 | [texgyreadventor-regular.otf]:mode=node;script=latn;language=dflt;+tlig; at 12.0pt 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles-disabled/fontload-sizefeatures-3-scfeat.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \setmainfont{texgyretermes-regular.otf}[ 7 | UprightFeatures = 8 | { 9 | SizeFeatures = 10 | { 11 | { 12 | Size = -8, 13 | Font = texgyrepagella-regular.otf, 14 | SmallCapsFeatures = {LetterSpace=8} 15 | }, 16 | { 17 | Size = 8-12, 18 | SmallCapsFeatures = {LetterSpace=5} 19 | }, 20 | { 21 | Size = 12-15, 22 | Font = texgyreadventor-regular.otf, 23 | SmallCapsFeatures = {LetterSpace=3} 24 | }, 25 | { 26 | Size = 15-, 27 | Font = texgyreadventor-regular.otf 28 | % no letter spacing small caps for 15pt or larger 29 | } 30 | } 31 | } 32 | ] 33 | \begin{document} 34 | 35 | \def\x{regular \FONTNAME \textsc{small caps \FONTNAME}\par} 36 | \def\xx{\tiny \x \scriptsize \x \small \x \large \x} 37 | 38 | \xx 39 | 40 | \end{document} 41 | -------------------------------------------------------------------------------- /testfiles-disabled/fontload-sizefeatures-3-scfeat.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 5.0pt 4 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 5.0pt 5 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 7.0pt 6 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 7.0pt 7 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 9.0pt 8 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 9.0pt 9 | "[texgyreadventor-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 12.0pt 10 | "[texgyreadventor-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 12.0pt 11 | *************** 12 | Compilation 1 of test file completed with exit status 0 13 | -------------------------------------------------------------------------------- /testfiles-disabled/old tests/F-autofake.ltx: -------------------------------------------------------------------------------- 1 | \documentclass{testsuite} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | \Large 5 | \def\text{ABC \textit{ABC} \textbf{ABC} 6 | \textbf{\textit{ABC}}\\} 7 | \fontspec{Inconsolata}\text 8 | \fontspec[AutoFakeSlant]{Inconsolata}\text 9 | \fontspec[AutoFakeBold]{Inconsolata}\text 10 | \fontspec[AutoFakeSlant,AutoFakeBold] 11 | {Inconsolata}\text 12 | \fontspec[AutoFakeSlant=0.4]{Inconsolata}\text 13 | \fontspec[AutoFakeBold=5]{Inconsolata}\text 14 | \fontspec[AutoFakeSlant=0.4,AutoFakeBold=5] 15 | {Inconsolata}\text 16 | \end{document} -------------------------------------------------------------------------------- /testfiles-disabled/old tests/F-colour-clash.ltx: -------------------------------------------------------------------------------- 1 | \documentclass{testsuite} 2 | \usepackage{fontspec} 3 | \usepackage{xcolor} 4 | \begin{document} 5 | \fontspec{Verdana} 6 | Black 7 | \color{red} 8 | Red 9 | 10 | \fontspec[Color=red]{Verdana} 11 | \color{blue} 12 | Red? 13 | \end{document} -------------------------------------------------------------------------------- /testfiles-disabled/old tests/F-loading-external-underdefined.ltx: -------------------------------------------------------------------------------- 1 | \documentclass{testsuite} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | % behaviour fixed Sept 2011; external 5 | % fonts should not search for variants 6 | % if they're not specified. 7 | 8 | \setmainfont 9 | [ExternalLocation, 10 | SlantedFont={lmroman10-italic}] 11 | {lmroman10-regular} 12 | 13 | test \textsl{hello} 14 | 15 | \setmainfont 16 | [ExternalLocation, 17 | BoldFont={lmroman10-bold}] 18 | {lmroman10-regular} 19 | 20 | test \textbf{hello} 21 | 22 | \end{document} -------------------------------------------------------------------------------- /testfiles-disabled/old tests/F-verb-fancyvrb.ltx: -------------------------------------------------------------------------------- 1 | \documentclass[twocolumn]{testsuite} 2 | \usepackage{fontspec,fancyvrb} 3 | \begin{document} 4 | \begin{Verbatim} 5 | testing spaces 6 | \end{Verbatim} 7 | \begin{Verbatim*} 8 | testing spaces 9 | \end{Verbatim*} 10 | \end{document} -------------------------------------------------------------------------------- /testfiles-disabled/old tests/F-verb-listings.ltx: -------------------------------------------------------------------------------- 1 | \documentclass[twocolumn]{testsuite} 2 | \usepackage{fontspec,listings} 3 | \begin{document} 4 | \begin{lstlisting} 5 | testing spaces 6 | \end{lstlisting} 7 | \begin{lstlisting}[showspaces] 8 | testing spaces 9 | \end{lstlisting} 10 | \end{document} -------------------------------------------------------------------------------- /testfiles-disabled/old tests/F-verb-moreverb.ltx: -------------------------------------------------------------------------------- 1 | \documentclass[twocolumn]{testsuite} 2 | \usepackage{fontspec,moreverb} 3 | \begin{document} 4 | \setmainfont{texgyretermes-regular.otf} 5 | \setmonofont{Inconsolatazi4-Regular.otf} 6 | \begin{listing}{7} 7 | testing spaces 8 | \end{listing} 9 | \begin{listing*}{7} 10 | testing spaces 11 | \end{listing*} 12 | \end{document} -------------------------------------------------------------------------------- /testfiles-disabled/old tests/F-verb-plain.ltx: -------------------------------------------------------------------------------- 1 | \documentclass[twocolumn]{testsuite} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | \setmainfont{texgyretermes-regular.otf} 5 | \setmonofont{Inconsolatazi4-Regular.otf} 6 | \verb|testing spaces|\\ 7 | \verb*|testing spaces| 8 | \begin{verbatim} 9 | testing spaces 10 | \end{verbatim} 11 | \begin{verbatim*} 12 | testing spaces 13 | \end{verbatim*} 14 | \newpage 15 | \setmonofont{Courier New} 16 | \verb|testing spaces|\\ 17 | \verb*|testing spaces| 18 | \begin{verbatim} 19 | testing spaces 20 | \end{verbatim} 21 | \begin{verbatim*} 22 | testing spaces 23 | \end{verbatim*} 24 | \end{document} -------------------------------------------------------------------------------- /testfiles-disabled/old tests/F-verb-verbatim.ltx: -------------------------------------------------------------------------------- 1 | \documentclass[twocolumn]{testsuite} 2 | \usepackage{fontspec,verbatim} 3 | \begin{document} 4 | \setmainfont{texgyretermes-regular.otf} 5 | \setmonofont{Inconsolatazi4-Regular.otf} 6 | \verb|testing spaces|\\ 7 | \verb*|testing spaces| 8 | \begin{verbatim} 9 | testing spaces 10 | \end{verbatim} 11 | \begin{verbatim*} 12 | testing spaces 13 | \end{verbatim*} 14 | \newpage 15 | \setmonofont{Courier New} 16 | \verb|testing spaces|\\ 17 | \verb*|testing spaces| 18 | \begin{verbatim} 19 | testing spaces 20 | \end{verbatim} 21 | \begin{verbatim*} 22 | testing spaces 23 | \end{verbatim*} 24 | \end{document} -------------------------------------------------------------------------------- /testfiles-disabled/old tests/X-new-font-feature.ltx: -------------------------------------------------------------------------------- 1 | 2 | \documentclass{testsuite} 3 | \usepackage{fontspec} 4 | \begin{document} 5 | \newfontfeature{AvoidD}{Special=Avoid d-collisions} 6 | \newfontfeature{NoAvoidD}{Special=!Avoid d-collisions} 7 | \fontspec[AvoidD,Variant=1]{Zapfino} 8 | sockdolager rubdown \\ 9 | \fontspec[NoAvoidD,Variant=1]{Zapfino} 10 | sockdolager rubdown 11 | \end{document} 12 | -------------------------------------------------------------------------------- /testfiles-disabled/pkg-mathspec.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | *** XeTeX-only test *** 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 -------------------------------------------------------------------------------- /testfiles-disabled/pkg-mathspec.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \ifdefined\directlua 3 | \def\NEXT{\begin{document}\XETEXONLY}% 4 | \fi 5 | \csname NEXT\endcsname 6 | 7 | \usepackage{mathspec} 8 | \setmainfont{texgyrepagella}[ 9 | Extension = .otf, 10 | UprightFont = *-regular , 11 | ItalicFont = *-italic , 12 | BoldFont = *-bold , 13 | BoldItalicFont = *-bolditalic , 14 | ] 15 | 16 | \setmathfont 17 | (Digits,Latin)% 18 | [ItalicFont=texgyrepagella-italic.otf]% 19 | {texgyrepagella-regular.otf} 20 | 21 | \setmathfont 22 | (Greek)% 23 | [ItalicFont=GFSPorson.otf]% 24 | {GFSPorson.otf} 25 | 26 | \begin{document} 27 | 28 | \[ a+b+c=1+2+3=\alpha+\beta+\gamma \] 29 | 30 | \MSG{Checking loading; no log file data expected.} 31 | 32 | \end{document} 33 | -------------------------------------------------------------------------------- /testfiles-disabled/pkg-mathspec.xetex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 -------------------------------------------------------------------------------- /testfiles-disabled/testfiles-too-much-log/patch-fnsymbol.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \setmainfont{LinLibertine_R.otf} 4 | \begin{document} 5 | \title{abc, 6 | \thanks{1}, 7 | \thanks{2}, 8 | \thanks{3}, 9 | \thanks{4}, 10 | \thanks{5}, 11 | \thanks{6}, 12 | \thanks{7}, 13 | \thanks{8}, 14 | \thanks{9}, 15 | } 16 | \author{} 17 | \date{} 18 | 19 | \begin{fstest} 20 | \maketitle 21 | \end{fstest} 22 | 23 | \end{document} 24 | -------------------------------------------------------------------------------- /testfiles/0-pkg-load.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/0-pkg-load.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | hello 5 | \MSG{Checking loading; no log file data expected.} 6 | \end{document} 7 | -------------------------------------------------------------------------------- /testfiles/0-pkg-load.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-babel.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-babel.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup} 2 | \usepackage[english]{babel} 3 | \usepackage{fontspec} 4 | \setmainfont{texgyrepagella-regular.otf} 5 | \begin{document} 6 | hello 7 | \MSG{Checking loading; no log file data expected.} 8 | \end{document} 9 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-babel.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-eu.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-eu.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup} 2 | \usepackage[euenc]{fontspec} 3 | \setmainfont{texgyrepagella-regular.otf} 4 | \begin{document} 5 | hello 6 | \MSG{Checking loading; no log file data expected.} 7 | \end{document} 8 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-eu.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-tu.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-tu.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup} 2 | \usepackage[tuenc]{fontspec} 3 | \setmainfont{texgyrepagella-regular.otf} 4 | \begin{document} 5 | hello 6 | \MSG{Checking loading; no log file data expected.} 7 | \end{document} 8 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-tu.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-twice.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Completed box being shipped out [1] 4 | \hbox(0.0+0.0)x0.0, glue set - 1.0, direction TLT 5 | .\TU/lmr/m/n/10 h 6 | .\TU/lmr/m/n/10 e 7 | .\TU/lmr/m/n/10 l 8 | .\TU/lmr/m/n/10 l 9 | .\TU/lmr/m/n/10 o 10 | .\glue(\spaceskip) 3.33 plus 1.665 minus 1.11 11 | .\mathon 12 | .\OT1/cmr/m/n/10 a 13 | .\mathoff 14 | .\glue(\spaceskip) 3.33 plus 1.665 minus 1.11 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-twice.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup} 2 | \usepackage{fontspec} 3 | \usepackage[no-math]{fontspec} 4 | \begin{document} 5 | \SHIPOUT{hello $\mathrm{a}$ } 6 | \end{document} 7 | -------------------------------------------------------------------------------- /testfiles/00-pkg-load-twice.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Completed box being shipped out [1] 4 | \hbox(0.0+0.0)x0.0, glue set - 1.0 5 | .\TU/lmr/m/n/10 hello 6 | .\glue 3.33 plus 1.665 minus 1.11 7 | .\mathon 8 | .\OT1/cmr/m/n/10 a 9 | .\mathoff 10 | .\glue 3.33 plus 1.665 minus 1.11 11 | *************** 12 | Compilation 1 of test file completed with exit status 0 13 | -------------------------------------------------------------------------------- /testfiles/02-pkg-load-predocclass.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/02-pkg-load-predocclass.lvt: -------------------------------------------------------------------------------- 1 | \PassOptionsToPackage{enable-debug}{expl3} 2 | \RequirePackage{fontspec} 3 | \input{fontspec-testsetup} 4 | \setmainfont{texgyrepagella-regular.otf} 5 | \begin{document} 6 | hello 7 | \MSG{Checking loading; no log file data expected.} 8 | \end{document} 9 | -------------------------------------------------------------------------------- /testfiles/02-pkg-load-predocclass.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/03-pkg-load-global-math.lvt: -------------------------------------------------------------------------------- 1 | \input{regression-test.tex} 2 | \documentclass[math=yuck]{article} 3 | \usepackage{fontspec} 4 | \begin{document} 5 | \START 6 | \typeout{Checking loading; no log file data expected.} 7 | \OMIT 8 | \end{document} -------------------------------------------------------------------------------- /testfiles/03-pkg-load-global-math.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking loading; no log file data expected. 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/aff-group.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | \makeatletter 5 | 6 | \TIMO\SEPARATOR\OMIT 7 | 8 | \MSG{Loading a font:} 9 | \setmainfont{texgyretermes-regular.otf} 10 | \CURRNFSS 11 | 12 | \MSG{Adding a colour:} 13 | \addfontfeatures{Color = AA00AA} 14 | \CURRNFSS 15 | 16 | \MSG{Back to normalfont:} 17 | \normalfont 18 | \CURRNFSS 19 | 20 | \MSG{Open group and add a different colour:} 21 | \begingroup 22 | \addfontfeatures{Color = 00AAAA} 23 | \CURRNFSS 24 | 25 | \MSG{End the group:} 26 | \endgroup 27 | \CURRNFSS 28 | 29 | 30 | 31 | 32 | \TIMO\SEPARATOR\OMIT 33 | \MSG{The following demonstrates strange behaviour to be wary of.} 34 | 35 | \setmainfont{texgyrepagella-regular.otf} 36 | \CURRNFSS 37 | \addfontfeatures{Color = AA00AA,NFSSFamily=\rmdefault} 38 | \CURRNFSS 39 | \setmainfont{texgyrepagella-regular.otf} 40 | \CURRNFSS 41 | 42 | 43 | 44 | \TIMO\SEPARATOR\OMIT 45 | \MSG{And check NFSSFamily use inside a group.} 46 | 47 | \MSG{Reload another font:} 48 | \setmainfont{texgyreheros-regular.otf} 49 | \CURRNFSS 50 | 51 | \MSG{Open group and add a different colour, without changing family:} 52 | \begingroup 53 | \addfontfeatures{Color = 00AAAA,NFSSFamily=\rmdefault} 54 | \CURRNFSS 55 | 56 | \MSG{End the group:} 57 | \endgroup 58 | \CURRNFSS 59 | 60 | 61 | \TIMO\SEPARATOR\OMIT 62 | 63 | 64 | \end{document} 65 | -------------------------------------------------------------------------------- /testfiles/aff-italic-only.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \setmainfont{texgyrepagella}[ 7 | Extension = .otf, 8 | UprightFont = *-regular , 9 | ItalicFont = *-italic , 10 | ItalicFeatures = {Color=AA0000}, 11 | BoldFont = *-bold , 12 | BoldItalicFont = *-bolditalic , 13 | ] 14 | 15 | \begin{document} 16 | 17 | \def\X{\CURRNFSS\textsc{\CURRNFSS}} 18 | 19 | \MSG{NO FEATURE} 20 | \X\textit{\X}\textbf{\X}\textbf{\textit{\X}} 21 | 22 | \MSG{AFF TO ALL} 23 | \begingroup 24 | \addfontfeature{Numbers=Lowercase} 25 | \X\textit{\X}\textbf{\X}\textbf{\textit{\X}} 26 | \endgroup 27 | 28 | \MSG{AFF TO ITALICS} 29 | \begingroup 30 | \addfontfeature{ItalicFeatures={Numbers=Lowercase}} 31 | \X\textit{\X}\textbf{\X}\textbf{\textit{\X}} 32 | \endgroup 33 | 34 | \end{document} 35 | -------------------------------------------------------------------------------- /testfiles/aff-numbers.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyreadventor-regular.otf(0)/m/n: 4 | [texgyreadventor-regular.otf]:mode=node;script=latn;language=dflt;+pnum;+onum; 5 | TU/texgyreadventor-regular.otf(1)/m/n: 6 | [texgyreadventor-regular.otf]:mode=node;script=latn;language=dflt;+tnum;+lnum; 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/aff-numbers.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \begin{document} 6 | 7 | \fontspec{texgyreadventor-regular.otf}[Numbers={Proportional,OldStyle}] 8 | 9 | \CURRNFSS 10 | 11 | \addfontfeatures{Numbers={Monospaced,Lining}} 12 | 13 | \CURRNFSS 14 | 15 | \end{document} -------------------------------------------------------------------------------- /testfiles/aff-numbers.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyreadventor-regular.otf(0)/m/n: 4 | "[texgyreadventor-regular.otf]/OT:script=latn;language=dflt;+pnum;+onum;" at 10.0pt 5 | TU/texgyreadventor-regular.otf(1)/m/n: 6 | "[texgyreadventor-regular.otf]/OT:script=latn;language=dflt;+tnum;+lnum;" at 10.0pt 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/aff-sc-repeated.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \setmainfont{texgyrepagella}[ 7 | Extension = .otf, 8 | UprightFont = *-regular , 9 | ItalicFont = *-italic , 10 | ItalicFeatures = {Color=AA0000}, 11 | BoldFont = *-bold , 12 | BoldItalicFont = *-bolditalic , 13 | ] 14 | 15 | \begin{document} 16 | 17 | \def\X{\CURRNFSS\textsc{\CURRNFSS}} 18 | 19 | \MSG{NO FEATURE} 20 | \X\textit{\X}\textbf{\X}\textbf{\textit{\X}} 21 | 22 | \MSG{AFF TO SC} 23 | \begingroup 24 | \addfontfeature{ 25 | UprightFeatures = { SmallCapsFeatures = { Numbers=Lowercase } } , 26 | ItalicFeatures = { SmallCapsFeatures = { Numbers=Proportional } } 27 | } 28 | \X\textit{\X}\textbf{\X}\textbf{\textit{\X}} 29 | \endgroup 30 | 31 | \end{document} 32 | -------------------------------------------------------------------------------- /testfiles/api-assorted.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | LM is 4 | not a fontspec font. 5 | TeX Gyre Pagella 6 | is a fontspec font 7 | is OpenType 8 | has small caps 9 | is using Latin script 10 | also has Cyrillic 11 | is using `default' language 12 | also has Romanian 13 | *** 14 | Now load latn/ROM: 15 | Is Language=Romanian ? 16 | YES 17 | *************** 18 | Compilation 1 of test file completed with exit status 0 19 | -------------------------------------------------------------------------------- /testfiles/api-assorted.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \ExplSyntaxOn 9 | 10 | \MSG{LM~is} 11 | \fontspec_if_fontspec_font:TF {\ERROR}{\MSG{not~a~fontspec~font.}} 12 | 13 | \setmainfont{texgyrepagella-regular.otf} 14 | 15 | \MSG{TeX~ Gyre~ Pagella} 16 | \fontspec_if_fontspec_font:TF {\MSG{is~a~fontspec~font}}{\ERROR} 17 | 18 | \fontspec_if_opentype:TF {\MSG{is~OpenType}}{\ERROR} 19 | 20 | \fontspec_if_feature:nTF {smcp}{\MSG{has~small~caps}}{\ERROR} 21 | 22 | \fontspec_if_current_script:nTF {latn}{\MSG{is~using~Latin~script}}{\ERROR} 23 | 24 | \fontspec_if_script:nTF {cyrl}{\MSG{also~has~Cyrillic}}{\ERROR} 25 | 26 | \fontspec_if_current_language:nTF {dflt}{\MSG{is~using~`default'~language}}{\ERROR} 27 | 28 | \fontspec_if_language:nnTF {latn}{ROM}{\MSG{also~has~Romanian}}{\ERROR} 29 | 30 | \MSG{***} 31 | \MSG{Now~ load~ latn/ROM:} 32 | \setmainfont{texgyrepagella-regular.otf}[Language=Romanian] 33 | 34 | \MSG{Is~ Language=Romanian~ ?} 35 | 36 | \fontspec_if_current_language:nTF {ROM}{\MSG{YES}}{\MSG{NO}} 37 | 38 | 39 | \end{document} 40 | -------------------------------------------------------------------------------- /testfiles/api-assorted.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | LM is 4 | not a fontspec font. 5 | TeX Gyre Pagella 6 | is a fontspec font 7 | is OpenType 8 | has small caps 9 | is using Latin script 10 | also has Cyrillic 11 | is using `default' language 12 | also has Romanian 13 | *** 14 | Now load latn/ROM: 15 | Is Language=Romanian ? 16 | YES 17 | *************** 18 | Compilation 1 of test file completed with exit status 0 19 | -------------------------------------------------------------------------------- /testfiles/api-font-if-exist.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TRUE 4 | TRUE 5 | FALSE 6 | *************** 7 | Compilation 1 of test file completed with exit status 0 8 | -------------------------------------------------------------------------------- /testfiles/api-font-if-exist.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | \begin{fstest} 5 | \ExplSyntaxOn 6 | \fontspec_font_if_exist:nTF {cmr10} 7 | {\TIMO\TRUE\OMIT} {\TIMO\FALSE\OMIT} 8 | \NEWLINE 9 | \fontspec_font_if_exist:nTF {texgyrepagella-regular.otf} 10 | {\TIMO\TRUE\OMIT} {\TIMO\FALSE\OMIT} 11 | \NEWLINE 12 | \fontspec_font_if_exist:nTF {mystery-font.otf} 13 | {\TIMO\TRUE\OMIT} {\TIMO\FALSE\OMIT} 14 | \ExplSyntaxOff 15 | \end{fstest} 16 | \end{document} 17 | -------------------------------------------------------------------------------- /testfiles/api-font-if-exist.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TRUE 4 | TRUE 5 | FALSE 6 | *************** 7 | Compilation 1 of test file completed with exit status 0 8 | -------------------------------------------------------------------------------- /testfiles/api-if-current-feature.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | CORRECT 4 | CORRECT 5 | CORRECT 6 | *************** 7 | Compilation 1 of test file completed with exit status 0 8 | -------------------------------------------------------------------------------- /testfiles/api-if-current-feature.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \ExplSyntaxOn 6 | 7 | \fontspec{texgyrepagella-regular.otf} 8 | \fontspec_if_current_feature:nTF {+onum} {\MSG{WRONG}} {\MSG{CORRECT}} 9 | 10 | \addfontfeature{Numbers=OldStyle} 11 | \fontspec_if_current_feature:nTF {+onum} {\MSG{CORRECT}} {\MSG{WRONG}} 12 | 13 | \addfontfeature{Numbers=Lining} 14 | \fontspec_if_current_feature:nTF {+onum} {\MSG{WRONG}} {\MSG{CORRECT}} 15 | 16 | \ExplSyntaxOff 17 | 18 | \end{document} 19 | -------------------------------------------------------------------------------- /testfiles/api-if-current-feature.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | CORRECT 4 | CORRECT 5 | CORRECT 6 | *************** 7 | Compilation 1 of test file completed with exit status 0 8 | -------------------------------------------------------------------------------- /testfiles/api-if-feature.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | CORRECT 4 | CORRECT 5 | CORRECT 6 | CORRECT 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/api-if-feature.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \fontspec{texgyrepagella-regular.otf} 6 | 7 | \ExplSyntaxOn 8 | 9 | \fontspec_if_feature:nTF {+onum} {\MSG{CORRECT}} {\MSG{WRONG}} 10 | \fontspec_if_feature:nTF {onum} {\MSG{CORRECT}} {\MSG{WRONG}} 11 | 12 | \fontspec_if_feature:nTF {+znum} {\MSG{WRONG}} {\MSG{CORRECT}} 13 | \fontspec_if_feature:nTF {znum} {\MSG{WRONG}} {\MSG{CORRECT}} 14 | 15 | \ExplSyntaxOff 16 | 17 | \end{document} 18 | -------------------------------------------------------------------------------- /testfiles/api-if-feature.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | CORRECT 4 | CORRECT 5 | CORRECT 6 | CORRECT 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/api-if-font-feature-active.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | CORRECT 4 | CORRECT 5 | CORRECT 6 | CORRECT 7 | CORRECT 8 | *************** 9 | Compilation 1 of test file completed with exit status 0 10 | -------------------------------------------------------------------------------- /testfiles/api-if-font-feature-active.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | \begin{fstest} 5 | \ExplSyntaxOn 6 | \def\INTEND{\MSG{CORRECT}} 7 | \def\WRONG {\MSG{WRONG}} 8 | 9 | \OMIT 10 | \fontspec{texgyrepagella-regular.otf} 11 | \TIMO 12 | 13 | \IfFontFeatureActiveTF{Numbers=Uppercase}{\WRONG}{\INTEND} 14 | 15 | \OMIT 16 | \addfontfeatures{Numbers=Uppercase} 17 | \TIMO 18 | 19 | \IfFontFeatureActiveTF{Numbers=Uppercase}{\INTEND}{\WRONG} 20 | 21 | \IfFontFeatureActiveTF{Language=French}{\WRONG}{\INTEND} 22 | 23 | \IfFontFeatureActiveTF{Language=Default}{\INTEND}{\WRONG} 24 | 25 | \sys_if_engine_xetex:T { 26 | \IfFontFeatureActiveTF{Renderer=OpenType}{\INTEND}{\WRONG} 27 | } 28 | \sys_if_engine_luatex:T { 29 | \IfFontFeatureActiveTF{Renderer=Full}{\INTEND}{\WRONG} 30 | } 31 | 32 | \ExplSyntaxOff 33 | \end{fstest} 34 | \end{document} 35 | -------------------------------------------------------------------------------- /testfiles/api-if-font-feature-active.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | CORRECT 4 | CORRECT 5 | CORRECT 6 | CORRECT 7 | CORRECT 8 | *************** 9 | Compilation 1 of test file completed with exit status 0 10 | -------------------------------------------------------------------------------- /testfiles/api-if-small-caps.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | CORRECT 4 | CORRECT 5 | CORRECT 6 | CORRECT 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/api-if-small-caps.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | \begin{fstest} 5 | \ExplSyntaxOn 6 | \def\INTEND{\typeout{CORRECT}} 7 | \def\WRONG {\typeout{WRONG}} 8 | 9 | \OMIT 10 | \fontspec{texgyrepagella-regular.otf} 11 | \TIMO 12 | 13 | \fontspec_if_small_caps:TF{\INTEND}{\WRONG} 14 | 15 | \begingroup 16 | \scshape 17 | \fontspec_if_small_caps:TF{\INTEND}{\WRONG} 18 | \endgroup 19 | 20 | 21 | \OMIT 22 | \fontspec{texgyrechorus-mediumitalic.otf} 23 | \TIMO 24 | 25 | \fontspec_if_small_caps:TF{\WRONG}{\INTEND} 26 | 27 | \begingroup 28 | \makeatletter 29 | \OMIT 30 | \scshape 31 | \TIMO 32 | \fontspec_if_small_caps:TF{\WRONG}{\INTEND} 33 | \endgroup 34 | 35 | \ExplSyntaxOff 36 | \end{fstest} 37 | \end{document} 38 | -------------------------------------------------------------------------------- /testfiles/api-if-small-caps.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | CORRECT 4 | CORRECT 5 | CORRECT 6 | CORRECT 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/api-script.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | Loading [texgyrepagella-regular.otf] 5 | Check "DFLT": 6 | :: YES 7 | Check "cyrl": 8 | :: YES 9 | Check "latn": 10 | :: YES 11 | Check "hani": 12 | :: NO 13 | ============================================================ 14 | Loading [FandolSong-Regular.otf] 15 | Check "DFLT": 16 | :: YES 17 | Check "cyrl": 18 | :: NO 19 | Check "latn": 20 | :: YES 21 | Check "hani": 22 | :: YES 23 | *************** 24 | Compilation 1 of test file completed with exit status 0 25 | -------------------------------------------------------------------------------- /testfiles/api-script.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \ExplSyntaxOn 7 | 8 | \START 9 | \SEPARATOR 10 | 11 | \cs_set:Npn \CHK #1 12 | { 13 | \MSG{Check~ "#1":} 14 | \fontspec_if_script:nTF {#1}{\MSG{::~YES}}{\MSG{::~NO}} 15 | } 16 | 17 | \MSG{Loading~[texgyrepagella-regular.otf]} 18 | \setmainfont{texgyrepagella-regular.otf} 19 | 20 | \CHK{DFLT} 21 | \CHK{cyrl} 22 | \CHK{latn} 23 | \CHK{hani} 24 | 25 | \TIMO\SEPARATOR 26 | \MSG{Loading~[FandolSong-Regular.otf]} 27 | \setmainfont{FandolSong-Regular.otf} 28 | 29 | \CHK{DFLT} 30 | \CHK{cyrl} 31 | \CHK{latn} 32 | \CHK{hani} 33 | 34 | \ExplSyntaxOff 35 | 36 | \begin{document} 37 | 38 | \end{document} 39 | -------------------------------------------------------------------------------- /testfiles/api-script.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | Loading [texgyrepagella-regular.otf] 5 | Check "DFLT": 6 | :: YES 7 | Check "cyrl": 8 | :: YES 9 | Check "latn": 10 | :: YES 11 | Check "hani": 12 | :: NO 13 | ============================================================ 14 | Loading [FandolSong-Regular.otf] 15 | Check "DFLT": 16 | :: NO 17 | Check "cyrl": 18 | :: NO 19 | Check "latn": 20 | :: NO 21 | Check "hani": 22 | :: NO 23 | *************** 24 | Compilation 1 of test file completed with exit status 0 25 | -------------------------------------------------------------------------------- /testfiles/api-tag-too-long.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ! Package fontspec Error: 4 | (fontspec) OpenType tag 'smcpp' is too long; script, language, and feature tags must be four characters or fewer. 5 | Type to continue. 6 | ... 7 | l. ...\fontspec_if_feature:nTF {smcpp} 8 | {}{} 9 | LaTeX does not know anything more about this error, sorry. 10 | Try typing to proceed. 11 | If that doesn't work, type X to quit. 12 | ! Package fontspec Error: 13 | (fontspec) OpenType tag 'cyrll' is too long; script, language, and feature tags must be four characters or fewer. 14 | Type to continue. 15 | ... 16 | l. ...\fontspec_if_script:nTF {cyrll} 17 | {}{} 18 | LaTeX does not know anything more about this error, sorry. 19 | Try typing to proceed. 20 | If that doesn't work, type X to quit. 21 | ! Package fontspec Error: 22 | (fontspec) OpenType tag 'ROMMM' is too long; script, language, and feature tags must be four characters or fewer. 23 | Type to continue. 24 | ... 25 | l. ...\fontspec_if_language:nnTF {latn}{ROMMM} 26 | {}{} 27 | LaTeX does not know anything more about this error, sorry. 28 | Try typing to proceed. 29 | If that doesn't work, type X to quit. 30 | *************** 31 | Compilation 1 of test file completed with exit status 256 32 | -------------------------------------------------------------------------------- /testfiles/api-tag-too-long.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \setmainfont{texgyrepagella-regular.otf} 6 | 7 | \begin{document} 8 | \START 9 | \TIMO 10 | 11 | \ExplSyntaxOn 12 | 13 | \fontspec_if_feature:nTF {smcpp}{}{} 14 | 15 | \fontspec_if_script:nTF {cyrll}{}{} 16 | 17 | \fontspec_if_language:nnTF {latn}{ROMMM}{}{} 18 | 19 | \end{document} 20 | -------------------------------------------------------------------------------- /testfiles/colour-basic.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Loading xcolor... 4 | ...done 5 | Loading a font with hex colour: 6 | TU/texgyreheros-regular.otf(0)/m/n: 7 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={5500FF}; 8 | Loading a font by name (l3color+xcolor): 9 | TU/texgyreheros-regular.otf(1)/m/n: 10 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={red}; 11 | Defining a new xcolor colour and using it: 12 | TU/texgyreheros-regular.otf(2)/m/n: 13 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={4D6680}; 14 | Defining a new l3color colour and using it: 15 | TU/texgyreheros-regular.otf(3)/m/n: 16 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={Bar}; 17 | *************** 18 | Compilation 1 of test file completed with exit status 0 19 | -------------------------------------------------------------------------------- /testfiles/colour-basic.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \START\OMIT 3 | \usepackage{fontspec} 4 | \MSG{Loading xcolor...} 5 | \usepackage{xcolor} 6 | \MSG{...done} 7 | \begin{document} 8 | 9 | \MSG{Loading a font with hex colour:} 10 | {\fontspec[Color=5500FF]{texgyreheros-regular.otf}\CURRNFSS} 11 | 12 | \MSG{Loading a font by name (l3color+xcolor):} 13 | {\fontspec[Color=red]{texgyreheros-regular.otf}\CURRNFSS} 14 | 15 | \MSG{Defining a new xcolor colour and using it:} 16 | \definecolor{Foo}{rgb}{0.3,0.4,0.5} 17 | {\fontspec[Color=Foo]{texgyreheros-regular.otf}\CURRNFSS} 18 | 19 | \MSG{Defining a new l3color colour and using it:} 20 | \ExplSyntaxOn 21 | \color_set:nnn{Bar}{rgb}{0.5,0.4,0.3} 22 | \ExplSyntaxOff 23 | {\fontspec[Color=Bar]{texgyreheros-regular.otf}\CURRNFSS} 24 | 25 | \end{document} 26 | -------------------------------------------------------------------------------- /testfiles/colour-basic.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Loading xcolor... 4 | ...done 5 | Loading a font with hex colour: 6 | TU/texgyreheros-regular.otf(0)/m/n: 7 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=5500FFFF ;" at 10.0pt 8 | Loading a font by name (l3color+xcolor): 9 | TU/texgyreheros-regular.otf(1)/m/n: 10 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=FF0000FF ;" at 10.0pt 11 | Defining a new xcolor colour and using it: 12 | TU/texgyreheros-regular.otf(2)/m/n: 13 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=4D6680FF ;" at 10.0pt 14 | Defining a new l3color colour and using it: 15 | TU/texgyreheros-regular.otf(3)/m/n: 16 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=80664CFF ;" at 10.0pt 17 | *************** 18 | Compilation 1 of test file completed with exit status 0 19 | -------------------------------------------------------------------------------- /testfiles/colour-model.luatex.tpf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/latex3/fontspec/b5e0f588cd288c3be5a8e53ac62634241e199dd5/testfiles/colour-model.luatex.tpf -------------------------------------------------------------------------------- /testfiles/colour-model.pvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \ExplSyntaxOn 4 | \color_set:nnn{cmyk}{cmyk}{1,0,0.5,0} 5 | \ExplSyntaxOff 6 | 7 | \begin{document} 8 | 9 | \fontspec[Color=00FF00]{texgyreheros-regular.otf} Test 10 | 11 | \fontspec[Color=red]{texgyreheros-regular.otf} Test 12 | 13 | \fontspec[Color=cmyk]{texgyreheros-regular.otf} Test 14 | 15 | \ExplSyntaxOn 16 | \tl_set:Nn \l_color_fixed_model_tl{rgb} 17 | \ExplSyntaxOff 18 | 19 | \fontspec[Color=00FF00]{texgyretermes-regular.otf} Test 20 | 21 | \fontspec[Color=red]{texgyretermes-regular.otf} Test 22 | 23 | \fontspec[Color=cmyk]{texgyretermes-regular.otf} Test 24 | 25 | \ExplSyntaxOn 26 | \tl_set:Nn \l_color_fixed_model_tl{cmyk} 27 | \ExplSyntaxOff 28 | 29 | \fontspec[Color=00FF00]{texgyrecursor-regular.otf} Test 30 | 31 | \fontspec[Color=red]{texgyrecursor-regular.otf} Test 32 | 33 | \fontspec[Color=cmyk]{texgyrecursor-regular.otf} Test 34 | 35 | \end{document} 36 | -------------------------------------------------------------------------------- /testfiles/colour-model.tpf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/latex3/fontspec/b5e0f588cd288c3be5a8e53ac62634241e199dd5/testfiles/colour-model.tpf -------------------------------------------------------------------------------- /testfiles/colour-opacity.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyreheros-regular.otf(0)/m/n: 4 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={red}; 5 | TU/texgyreheros-regular.otf(1)/m/n: 6 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={red,7f}; 7 | TU/texgyreheros-regular.otf(2)/m/n: 8 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={00FF00,7f}; 9 | TU/texgyreheros-regular.otf(3)/m/n: 10 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={00FF0044}; 11 | TU/texgyreheros-regular.otf(4)/m/n: 12 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={00FF00,4c}; 13 | *************** 14 | Compilation 1 of test file completed with exit status 0 15 | -------------------------------------------------------------------------------- /testfiles/colour-opacity.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \usepackage{xcolor} 4 | \begin{document} 5 | 6 | \fontspec[Color=red]{texgyreheros-regular.otf} 7 | Test 8 | \CURRNFSS 9 | 10 | \fontspec[ 11 | Color=red,Opacity=0.5 12 | ]{texgyreheros-regular.otf} 13 | Test 14 | \CURRNFSS 15 | 16 | \fontspec[ 17 | Color=00FF00,Opacity=0.5 18 | ]{texgyreheros-regular.otf} 19 | Test 20 | \CURRNFSS 21 | 22 | \fontspec[ 23 | Color=00FF0044 24 | ]{texgyreheros-regular.otf} 25 | Test \CURRNFSS 26 | 27 | \fontspec[ 28 | Color=00FF0044, Opacity=0.3 29 | ]{texgyreheros-regular.otf} 30 | Test \CURRNFSS 31 | 32 | \end{document} 33 | -------------------------------------------------------------------------------- /testfiles/colour-opacity.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyreheros-regular.otf(0)/m/n: 4 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=FF0000FF ;" at 10.0pt 5 | TU/texgyreheros-regular.otf(1)/m/n: 6 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=FF00007f;" at 10.0pt 7 | TU/texgyreheros-regular.otf(2)/m/n: 8 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=00FF007f;" at 10.0pt 9 | TU/texgyreheros-regular.otf(3)/m/n: 10 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=00FF0044;" at 10.0pt 11 | TU/texgyreheros-regular.otf(4)/m/n: 12 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=00FF004c;" at 10.0pt 13 | *************** 14 | Compilation 1 of test file completed with exit status 0 15 | -------------------------------------------------------------------------------- /testfiles/colour-spotcolor.luatex.tpf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/latex3/fontspec/b5e0f588cd288c3be5a8e53ac62634241e199dd5/testfiles/colour-spotcolor.luatex.tpf -------------------------------------------------------------------------------- /testfiles/colour-spotcolor.pvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec,iftex} 3 | \ExplSyntaxOn 4 | \color_model_new:nnn { sepblue } { Separation } 5 | { 6 | name = PANTONE~3005~U , 7 | alternative-model = cmyk , 8 | alternative-values = {1, 0.56, 0,0}, 9 | } 10 | \color_set:nnn{spotblue}{sepblue}{1} 11 | \ExplSyntaxOff 12 | 13 | \ifluatex 14 | \setmainfont{texgyretermes}[Color=spotblue] 15 | \fi 16 | 17 | \begin{document} 18 | TTT 19 | \end{document} 20 | -------------------------------------------------------------------------------- /testfiles/colour-spotcolor.tpf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/latex3/fontspec/b5e0f588cd288c3be5a8e53ac62634241e199dd5/testfiles/colour-spotcolor.tpf -------------------------------------------------------------------------------- /testfiles/em-innershape.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | [ \eminnershape==\long macro:->\normalshape \scshape ] 4 | TU/texgyrepagella-regular.otf(0)/m/n: 5 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 6 | TU/texgyrepagella-regular.otf(0)/m/it: 7 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 8 | TU/texgyrepagella-regular.otf(0)/m/sc: 9 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; 10 | TU/texgyrepagella-regular.otf(0)/m/scit: 11 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; 12 | TU/texgyrepagella-regular.otf(0)/m/sc: 13 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; 14 | TU/texgyrepagella-regular.otf(0)/m/scit: 15 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; 16 | *************** 17 | Compilation 1 of test file completed with exit status 0 18 | -------------------------------------------------------------------------------- /testfiles/em-innershape.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \providecommand\normalshape{\upshape} 4 | \renewcommand\eminnershape{\normalshape\scshape} 5 | \begin{document} 6 | \setmainfont[ 7 | ItalicFont=texgyrepagella-italic.otf 8 | ]{texgyrepagella-regular.otf} 9 | 10 | \MSG{[\space\string\eminnershape==\meaning\eminnershape]} 11 | 12 | hello \CURRNFSS 13 | \emph{hello \CURRNFSS 14 | \emph{hello \CURRNFSS 15 | \emph{hello \CURRNFSS 16 | \emph{hello \CURRNFSS 17 | \emph{hello \CURRNFSS 18 | }}}}} 19 | 20 | \end{document} 21 | -------------------------------------------------------------------------------- /testfiles/em-innershape.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | [ \eminnershape==\long macro:->\normalshape \scshape ] 4 | TU/texgyrepagella-regular.otf(0)/m/n: 5 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 6 | TU/texgyrepagella-regular.otf(0)/m/it: 7 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 8 | TU/texgyrepagella-regular.otf(0)/m/sc: 9 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 10.0pt 10 | TU/texgyrepagella-regular.otf(0)/m/scit: 11 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 10.0pt 12 | TU/texgyrepagella-regular.otf(0)/m/sc: 13 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 10.0pt 14 | TU/texgyrepagella-regular.otf(0)/m/scit: 15 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 10.0pt 16 | *************** 17 | Compilation 1 of test file completed with exit status 0 18 | -------------------------------------------------------------------------------- /testfiles/em.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking default emph behaviour. 4 | TU/texgyrepagella(0)/m/n: 5 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 6 | TU/texgyrepagella(0)/m/it: 7 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 8 | TU/texgyrepagella(0)/m/n: 9 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 10 | TU/texgyrepagella(0)/m/it: 11 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 12 | TU/texgyrepagella(0)/m/n: 13 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 14 | TU/texgyrepagella(0)/m/it: 15 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 16 | *************** 17 | Compilation 1 of test file completed with exit status 0 18 | -------------------------------------------------------------------------------- /testfiles/em.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \setmainfont{texgyrepagella}[ 4 | Extension = .otf, 5 | UprightFont = *-regular , 6 | ItalicFont = *-italic , 7 | BoldFont = *-bold , 8 | BoldItalicFont = *-bolditalic , 9 | ] 10 | \begin{document} 11 | 12 | \MSG{Checking default emph behaviour.} 13 | 14 | hello \CURRNFSS 15 | \emph{hello \CURRNFSS 16 | \emph{hello \CURRNFSS 17 | \emph{hello \CURRNFSS 18 | \emph{hello \CURRNFSS 19 | \emph{hello \CURRNFSS 20 | }}}}} 21 | 22 | \end{document} 23 | -------------------------------------------------------------------------------- /testfiles/em.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Checking default emph behaviour. 4 | TU/texgyrepagella(0)/m/n: 5 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 6 | TU/texgyrepagella(0)/m/it: 7 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 8 | TU/texgyrepagella(0)/m/n: 9 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 10 | TU/texgyrepagella(0)/m/it: 11 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 12 | TU/texgyrepagella(0)/m/n: 13 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 14 | TU/texgyrepagella(0)/m/it: 15 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 16 | *************** 17 | Compilation 1 of test file completed with exit status 0 18 | -------------------------------------------------------------------------------- /testfiles/enc-T1-default.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Completed box being shipped out [1] 4 | \hbox(0.0+0.0)x0.0, direction TLT 5 | .\T1/qpl/m/n/10 a 6 | .\T1/qpl/m/n/10 b 7 | .\T1/qpl/m/n/10 c 8 | Completed box being shipped out [1] 9 | \hbox(0.0+0.0)x0.0, direction TLT 10 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 a 11 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 b 12 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 c 13 | *************** 14 | Compilation 1 of test file completed with exit status 0 15 | -------------------------------------------------------------------------------- /testfiles/enc-T1-default.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup} 2 | \usepackage{fontspec} 3 | \usepackage[T1]{fontenc} 4 | \usepackage{tgpagella} 5 | \begin{document} 6 | 7 | \SHIPOUT{\rmfamily abc} 8 | 9 | \setmainfont{texgyrepagella-regular.otf} 10 | 11 | \SHIPOUT{\rmfamily abc} 12 | 13 | \end{document} 14 | -------------------------------------------------------------------------------- /testfiles/enc-T1-default.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Completed box being shipped out [1] 4 | \hbox(0.0+0.0)x0.0 5 | .\T1/qpl/m/n/10 a 6 | .\T1/qpl/m/n/10 b 7 | .\T1/qpl/m/n/10 c 8 | Completed box being shipped out [1] 9 | \hbox(0.0+0.0)x0.0 10 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 abc 11 | *************** 12 | Compilation 1 of test file completed with exit status 0 13 | -------------------------------------------------------------------------------- /testfiles/enc-new-enc.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Completed box being shipped out [1] 4 | \hbox(0.0+0.0)x0.0, glue set - 1.0, direction TLT 5 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 a 6 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 b 7 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 c 8 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 ḍ 9 | .\glue(\spaceskip) 2.5 plus 1.25 minus 0.83333 10 | .\fakeacc/texgyreheros-regular.otf(0)/m/n/10 a 11 | .\fakeacc/texgyreheros-regular.otf(0)/m/n/10 b 12 | .\fakeacc/texgyreheros-regular.otf(0)/m/n/10 c 13 | .\fakeacc/texgyreheros-regular.otf(0)/m/n/10 ( 14 | .\fakeacc/texgyreheros-regular.otf(0)/m/n/10 d 15 | .\fakeacc/texgyreheros-regular.otf(0)/m/n/10 ) 16 | .\fakeacc/texgyreheros-regular.otf(0)/m/n/10 d 17 | .\glue(\spaceskip) 2.78 plus 1.39 minus 0.92667 18 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 a 19 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 b 20 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 c 21 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 ḍ 22 | .\glue(\spaceskip) 2.5 plus 1.25 minus 0.83333 23 | *************** 24 | Compilation 1 of test file completed with exit status 0 25 | -------------------------------------------------------------------------------- /testfiles/enc-new-enc.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup} 2 | \usepackage{fontspec} 3 | 4 | \makeatletter 5 | \DeclareUnicodeEncoding{fakeacc}{ 6 | \input{tuenc.def} 7 | \EncodingCommand{\d}[1]{(d)} 8 | } 9 | \makeatother 10 | 11 | \setmainfont{texgyrepagella-regular.otf} 12 | \setsansfont{texgyreheros-regular.otf}[NFSSEncoding=fakeacc] 13 | 14 | \begin{document} 15 | 16 | \SHIPOUT{\rmfamily abc\d d \sffamily abc\d d \rmfamily abc\d d } 17 | 18 | \end{document} 19 | -------------------------------------------------------------------------------- /testfiles/enc-new-enc.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Completed box being shipped out [1] 4 | \hbox(0.0+0.0)x0.0, glue set - 1.0 5 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 abcḍ 6 | .\glue 2.5 plus 1.25 minus 0.83333 7 | .\fakeacc/texgyreheros-regular.otf(0)/m/n/10 abc(d)d 8 | .\glue 2.78 plus 1.39 minus 0.92667 9 | .\TU/texgyrepagella-regular.otf(0)/m/n/10 abcḍ 10 | .\glue 2.5 plus 1.25 minus 0.83333 11 | *************** 12 | Compilation 1 of test file completed with exit status 0 13 | -------------------------------------------------------------------------------- /testfiles/feat-LocalForms.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | DEFAULT 5 | TU/Tempora-Regular.otf(0)/m/n: 6 | [Tempora-Regular.otf]:mode=node;script=latn;language=dflt; 7 | ============================================================ 8 | SCRIPT 9 | TU/Tempora-Regular.otf(1)/m/n: 10 | [Tempora-Regular.otf]:mode=node;script=cyrl;language=SRB; 11 | ============================================================ 12 | SCRIPT 13 | TU/Tempora-Regular.otf(2)/m/n: 14 | [Tempora-Regular.otf]:mode=node;script=cyrl;language=SRB;-locl; 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/feat-LocalForms.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \TIMO 6 | \SEPARATOR 7 | \MSG{DEFAULT} 8 | \fontspec{Tempora-Regular.otf} 9 | \CURRNFSS 10 | 11 | \TIMO 12 | \SEPARATOR 13 | \MSG{SCRIPT} 14 | \fontspec{Tempora-Regular.otf}[Script=Cyrillic,Language=Serbian] 15 | \CURRNFSS 16 | 17 | \TIMO 18 | \SEPARATOR 19 | \MSG{SCRIPT} 20 | \fontspec{Tempora-Regular.otf}[Script=Cyrillic,Language=Serbian,LocalForms=Off] 21 | \CURRNFSS 22 | 23 | \end{document} 24 | -------------------------------------------------------------------------------- /testfiles/feat-LocalForms.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | DEFAULT 5 | TU/Tempora-Regular.otf(0)/m/n: 6 | "[Tempora-Regular.otf]/OT:script=latn;language=dflt;" 7 | ============================================================ 8 | SCRIPT 9 | TU/Tempora-Regular.otf(1)/m/n: 10 | "[Tempora-Regular.otf]/OT:script=cyrl;language=SRB;" 11 | ============================================================ 12 | SCRIPT 13 | TU/Tempora-Regular.otf(2)/m/n: 14 | "[Tempora-Regular.otf]/OT:script=cyrl;language=SRB;-locl;" 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/feat-hyphenchar.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | hyphenchar = -1 4 | *** XeTeX-only test *** 5 | *************** 6 | Compilation 1 of test file completed with exit status 0 7 | -------------------------------------------------------------------------------- /testfiles/feat-hyphenchar.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | {\fontspec{texgyretermes-regular.otf}[HyphenChar=None] 9 | \MSG{hyphenchar = \the\hyphenchar\font}} 10 | 11 | \XETEXONLY 12 | 13 | {\fontspec{texgyretermes-regular.otf}[HyphenChar={+}] 14 | \MSG{hyphenchar = \the\hyphenchar\font}} 15 | 16 | {\fontspec{texgyretermes-regular.otf}[HyphenChar={"2A}] 17 | \MSG{hyphenchar = \the\hyphenchar\font}} 18 | 19 | {\fontspec{texgyretermes-regular.otf}[HyphenChar={41}] 20 | \MSG{hyphenchar = \the\hyphenchar\font}} 21 | 22 | \end{document} -------------------------------------------------------------------------------- /testfiles/feat-hyphenchar.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | hyphenchar = -1 4 | hyphenchar = 43 5 | hyphenchar = 42 6 | hyphenchar = 41 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/feat-number-multichoice.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | This test also checks that "aliased" options are working correctly. 4 | TU/texgyrepagella-regular.otf(0)/m/n: 5 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt; 6 | TU/texgyrepagella-regular.otf(1)/m/n: 7 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum;+tnum; 8 | TU/texgyrepagella-regular.otf(2)/m/n: 9 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum;+tnum; 10 | TU/texgyrepagella-regular.otf(3)/m/n: 11 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum;+tnum; 12 | TU/texgyrepagella-regular.otf(4)/m/n: 13 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum;+tnum; 14 | *************** 15 | Compilation 1 of test file completed with exit status 0 16 | -------------------------------------------------------------------------------- /testfiles/feat-number-multichoice.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \MSG{This test also checks that "aliased" options are working correctly.} 6 | 7 | \fontspec{texgyrepagella-regular.otf} 8 | \CURRNFSS 9 | 10 | \fontspec{texgyrepagella-regular.otf}[Numbers={OldStyle,Monospaced}] 11 | \CURRNFSS 12 | 13 | \fontspec{texgyrepagella-regular.otf}[Numbers={Lowercase,Monospaced}] 14 | \CURRNFSS 15 | 16 | \fontspec{texgyrepagella-regular.otf}[Numbers={OldStyle,Tabular}] 17 | \CURRNFSS 18 | 19 | \fontspec{texgyrepagella-regular.otf}[Numbers={Lowercase,Tabular}] 20 | \CURRNFSS 21 | 22 | \end{document} 23 | -------------------------------------------------------------------------------- /testfiles/feat-number-multichoice.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | This test also checks that "aliased" options are working correctly. 4 | TU/texgyrepagella-regular.otf(0)/m/n: 5 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;" at 10.0pt 6 | TU/texgyrepagella-regular.otf(1)/m/n: 7 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;+tnum;" at 10.0pt 8 | TU/texgyrepagella-regular.otf(2)/m/n: 9 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;+tnum;" at 10.0pt 10 | TU/texgyrepagella-regular.otf(3)/m/n: 11 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;+tnum;" at 10.0pt 12 | TU/texgyrepagella-regular.otf(4)/m/n: 13 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;+tnum;" at 10.0pt 14 | *************** 15 | Compilation 1 of test file completed with exit status 0 16 | -------------------------------------------------------------------------------- /testfiles/feat-punctspace.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Default termes: 4 | fontdimen7 = 0.83333pt 5 | PunctuationSpace=2: 6 | fontdimen7 = 1.66666pt 7 | PunctuationSpace=WordSpace: 8 | fontdimen2 = 2.5pt 9 | fontdimen7 = 0.0pt 10 | PunctuationSpace=TwiceWordSpace: 11 | fontdimen2 = 2.5pt 12 | fontdimen7 = 2.5pt 13 | *************** 14 | Compilation 1 of test file completed with exit status 0 15 | -------------------------------------------------------------------------------- /testfiles/feat-punctspace.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \def\x{Suspendisse vel felis. Ut lorem lorem, interdum eu, tincidunt sit amet, laoreet vitae, arcu. Aenean faucibus pede eu ante. Praesent enim elit, rutrum at, molestie non, nonummy vel, nisl.} 9 | 10 | \MSG{Default termes:} 11 | \setmainfont{texgyretermes-regular.otf} 12 | \x 13 | \MSG{fontdimen7 = \the\fontdimen7\font} 14 | 15 | \MSG{PunctuationSpace=2:} 16 | \setmainfont{texgyretermes-regular.otf}[PunctuationSpace=2] 17 | \x 18 | \MSG{fontdimen7 = \the\fontdimen7\font} 19 | 20 | \MSG{PunctuationSpace=WordSpace:} 21 | \setmainfont{texgyretermes-regular.otf}[PunctuationSpace=WordSpace] 22 | \x 23 | \MSG{fontdimen2 = \the\fontdimen2\font} 24 | \MSG{fontdimen7 = \the\fontdimen7\font} 25 | 26 | \MSG{PunctuationSpace=TwiceWordSpace:} 27 | \setmainfont{texgyretermes-regular.otf}[PunctuationSpace=TwiceWordSpace] 28 | \x 29 | \MSG{fontdimen2 = \the\fontdimen2\font} 30 | \MSG{fontdimen7 = \the\fontdimen7\font} 31 | 32 | \end{document} -------------------------------------------------------------------------------- /testfiles/feat-punctspace.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Default termes: 4 | fontdimen7 = 0.83333pt 5 | PunctuationSpace=2: 6 | fontdimen7 = 1.66666pt 7 | PunctuationSpace=WordSpace: 8 | fontdimen2 = 2.5pt 9 | fontdimen7 = 0.0pt 10 | PunctuationSpace=TwiceWordSpace: 11 | fontdimen2 = 2.5pt 12 | fontdimen7 = 2.5pt 13 | *************** 14 | Compilation 1 of test file completed with exit status 0 15 | -------------------------------------------------------------------------------- /testfiles/feat-reset.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ====== RESET ====== 4 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum; 5 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt; 6 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum; 7 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt; 8 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum; 9 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt; 10 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum; 11 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt; 12 | ======= OFF ======= 13 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum; 14 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;-onum; 15 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum; 16 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;-onum; 17 | *************** 18 | Compilation 1 of test file completed with exit status 0 19 | -------------------------------------------------------------------------------- /testfiles/feat-reset.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \TIMO 6 | \TYPE{====== RESET ======} 7 | \OMIT 8 | 9 | \fontspec{texgyrepagella-regular.otf}[Numbers=Lowercase] 10 | \TIMO 11 | \TYPE{\fontname\font} 12 | \OMIT 13 | 14 | \addfontfeature{Numbers=LowercaseReset} 15 | \TIMO 16 | \TYPE{\fontname\font} 17 | \OMIT 18 | 19 | \fontspec{texgyrepagella-regular.otf}[Numbers=Lowercase] 20 | \TIMO 21 | \TYPE{\fontname\font} 22 | \OMIT 23 | 24 | \addfontfeature{Numbers=ResetAll} 25 | \TIMO 26 | \TYPE{\fontname\font} 27 | \OMIT 28 | 29 | \fontspec{texgyrepagella-regular.otf}[Numbers=OldStyle] 30 | \TIMO 31 | \TYPE{\fontname\font} 32 | \OMIT 33 | 34 | \addfontfeature{Numbers=OldStyleReset} 35 | \TIMO 36 | \TYPE{\fontname\font} 37 | \OMIT 38 | 39 | \fontspec{texgyrepagella-regular.otf}[Numbers=OldStyle] 40 | \TIMO 41 | \TYPE{\fontname\font} 42 | \OMIT 43 | 44 | \addfontfeature{Numbers=ResetAll} 45 | \TIMO 46 | \TYPE{\fontname\font} 47 | \OMIT 48 | 49 | \TIMO 50 | \TYPE{======= OFF =======} 51 | \OMIT 52 | 53 | \fontspec{texgyrepagella-regular.otf}[Numbers=Lowercase] 54 | \TIMO 55 | \TYPE{\fontname\font} 56 | \OMIT 57 | 58 | \addfontfeature{Numbers=LowercaseOff} 59 | \TIMO 60 | \TYPE{\fontname\font} 61 | \OMIT 62 | 63 | \fontspec{texgyrepagella-regular.otf}[Numbers=OldStyle] 64 | \TIMO 65 | \TYPE{\fontname\font} 66 | \OMIT 67 | 68 | \addfontfeature{Numbers=OldStyleOff} 69 | \TIMO 70 | \TYPE{\fontname\font} 71 | \OMIT 72 | 73 | \end{document} 74 | -------------------------------------------------------------------------------- /testfiles/feat-reset.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ====== RESET ====== 4 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;" at 10.0pt 5 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;" at 10.0pt 6 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;" at 10.0pt 7 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;" at 10.0pt 8 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;" at 10.0pt 9 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;" at 10.0pt 10 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;" at 10.0pt 11 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;" at 10.0pt 12 | ======= OFF ======= 13 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;" at 10.0pt 14 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;-onum;" at 10.0pt 15 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;" at 10.0pt 16 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;-onum;" at 10.0pt 17 | *************** 18 | Compilation 1 of test file completed with exit status 0 19 | -------------------------------------------------------------------------------- /testfiles/feat-scale-again.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | WITHOUT SCALING 5 | TU/texgyreheros-regular.otf(0)/m/n: 6 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt; 7 | font dimen 5: 5.24pt 8 | font dimen 8: 7.29pt 9 | ============================================================ 10 | WITH SCALING TWICE 11 | TU/texgyreheros-regular.otf(1)/m/n: 12 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt; at 11.99997pt 13 | font dimen 5: 6.28798pt 14 | font dimen 8: 8.74797pt 15 | ============================================================ 16 | WITH SCALE AGAIN 17 | TU/texgyreheros-regular.otf(2)/m/n: 18 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt; at 13.20007pt 19 | font dimen 5: 6.91684pt 20 | font dimen 8: 9.62285pt 21 | ============================================================ 22 | WITH SCALE AGAIN THEN RESET 23 | TU/texgyreheros-regular.otf(3)/m/n: 24 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt; at 8.00003pt 25 | font dimen 5: 4.19202pt 26 | font dimen 8: 5.83202pt 27 | ============================================================ 28 | AGAIN ONLY 29 | TU/texgyreheros-regular.otf(4)/m/n: 30 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt; at 11.99997pt 31 | font dimen 5: 6.28798pt 32 | font dimen 8: 8.74797pt 33 | *************** 34 | Compilation 1 of test file completed with exit status 0 35 | -------------------------------------------------------------------------------- /testfiles/feat-scale-again.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \def\X{% 6 | \CURRNFSS 7 | \MSG{font dimen 5: \the\fontdimen5\font}% 8 | \MSG{font dimen 8: \the\fontdimen8\font}% 9 | } 10 | 11 | \TIMO\SEPARATOR 12 | \MSG{WITHOUT SCALING} 13 | \fontspec{texgyreheros-regular.otf} \X 14 | 15 | \TIMO\SEPARATOR 16 | \MSG{WITH SCALING TWICE} 17 | \fontspec[Scale=1.1,Scale=1.2]{texgyreheros-regular.otf} \X 18 | 19 | \TIMO\SEPARATOR 20 | \MSG{WITH SCALE AGAIN} 21 | \fontspec[Scale=1.1,ScaleAgain=1.2]{texgyreheros-regular.otf} \X 22 | 23 | \TIMO\SEPARATOR 24 | \MSG{WITH SCALE AGAIN THEN RESET} 25 | \fontspec[Scale=1.1,ScaleAgain=1.2,Scale=0.8]{texgyreheros-regular.otf} \X 26 | 27 | \TIMO\SEPARATOR 28 | \MSG{AGAIN ONLY} 29 | \fontspec[ScaleAgain=1.2]{texgyreheros-regular.otf} \X 30 | 31 | \end{document} 32 | -------------------------------------------------------------------------------- /testfiles/feat-scale-again.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | WITHOUT SCALING 5 | TU/texgyreheros-regular.otf(0)/m/n: 6 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;" at 10.0pt 7 | font dimen 5: 5.24pt 8 | font dimen 8: 7.29pt 9 | ============================================================ 10 | WITH SCALING TWICE 11 | TU/texgyreheros-regular.otf(1)/m/n: 12 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;" at 11.99997pt 13 | font dimen 5: 6.28798pt 14 | font dimen 8: 8.74797pt 15 | ============================================================ 16 | WITH SCALE AGAIN 17 | TU/texgyreheros-regular.otf(2)/m/n: 18 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;" at 13.20007pt 19 | font dimen 5: 6.91684pt 20 | font dimen 8: 9.62285pt 21 | ============================================================ 22 | WITH SCALE AGAIN THEN RESET 23 | TU/texgyreheros-regular.otf(3)/m/n: 24 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;" at 8.00003pt 25 | font dimen 5: 4.19202pt 26 | font dimen 8: 5.83202pt 27 | ============================================================ 28 | AGAIN ONLY 29 | TU/texgyreheros-regular.otf(4)/m/n: 30 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;" at 11.99997pt 31 | font dimen 5: 6.28798pt 32 | font dimen 8: 8.74797pt 33 | *************** 34 | Compilation 1 of test file completed with exit status 0 35 | -------------------------------------------------------------------------------- /testfiles/feat-scale-match.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \def\X{% 6 | \CURRNFSS 7 | \MSG{font dimen 5: \the\fontdimen5\font}% 8 | \MSG{font dimen 8: \the\fontdimen8\font}% 9 | } 10 | 11 | \setmainfont{texgyretermes-regular.otf} \X 12 | 13 | \MSG{WITHOUT SCALING} 14 | \fontspec{texgyreheros-regular.otf} \X 15 | \fontspec{texgyrecursor-regular.otf} \X 16 | 17 | \MSG{MATCH UPPERCASE} 18 | \fontspec[Scale=MatchUppercase]{texgyreheros-regular.otf} \X 19 | \fontspec[Scale=MatchUppercase]{texgyrecursor-regular.otf} \X 20 | 21 | \MSG{MATCH LOWERCASE} 22 | \fontspec[Scale=MatchLowercase]{texgyreheros-regular.otf} \X 23 | \fontspec[Scale=MatchLowercase]{texgyrecursor-regular.otf} \X 24 | 25 | \MSG{MATCH AVERAGECASE} 26 | \fontspec[Scale=MatchAveragecase]{texgyreheros-regular.otf} \X 27 | \fontspec[Scale=MatchAveragecase]{texgyrecursor-regular.otf} \X 28 | 29 | \end{document} 30 | -------------------------------------------------------------------------------- /testfiles/feat-ss06.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/Junicode.ttf(0)/m/n: 4 | [Junicode.ttf]:mode=node;script=latn;language=dflt; 5 | TU/Junicode.ttf(1)/m/n: 6 | [Junicode.ttf]:mode=node;script=latn;language=dflt;+ss06; 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/feat-ss06.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \begin{document} 6 | 7 | \fontspec{Junicode.ttf} 8 | \CURRNFSS 9 | 10 | \addfontfeature{StylisticSet=6} 11 | \CURRNFSS 12 | 13 | \end{document} 14 | -------------------------------------------------------------------------------- /testfiles/feat-ss06.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/Junicode.ttf(0)/m/n: 4 | "[Junicode.ttf]/OT:script=latn;language=dflt;" 5 | TU/Junicode.ttf(1)/m/n: 6 | "[Junicode.ttf]/OT:script=latn;language=dflt;+ss06;" 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/feat-wordspace.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Termes default: 4 | fontdimen2 = 2.5pt 5 | fontdimen3 = 1.25pt 6 | fontdimen4 = 0.83333pt 7 | WordSpace = 2: 8 | fontdimen2 = 5.0pt 9 | fontdimen3 = 2.5pt 10 | fontdimen4 = 1.66666pt 11 | WordSpace = 2,3,4: 12 | fontdimen2 = 10.0pt 13 | fontdimen3 = 7.5pt 14 | fontdimen4 = 6.66663pt 15 | Back to `default' -- unchanged from previous!: 16 | fontdimen2 = 10.0pt 17 | fontdimen3 = 7.5pt 18 | fontdimen4 = 6.66663pt 19 | Have to scale by close to unity to get back to default: 20 | fontdimen2 = 2.50005pt 21 | fontdimen3 = 1.25002pt 22 | fontdimen4 = 0.83334pt 23 | *************** 24 | Compilation 1 of test file completed with exit status 0 25 | -------------------------------------------------------------------------------- /testfiles/feat-wordspace.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \MSG{Termes default:} 9 | \fontspec{texgyretermes-regular.otf} 10 | \MSG{fontdimen2 = \the\fontdimen2\font} 11 | \MSG{fontdimen3 = \the\fontdimen3\font} 12 | \MSG{fontdimen4 = \the\fontdimen4\font} 13 | 14 | \MSG{WordSpace = 2:} 15 | \fontspec{texgyretermes-regular.otf}[WordSpace=2] 16 | \MSG{fontdimen2 = \the\fontdimen2\font} 17 | \MSG{fontdimen3 = \the\fontdimen3\font} 18 | \MSG{fontdimen4 = \the\fontdimen4\font} 19 | 20 | \MSG{WordSpace = 2,3,4:} 21 | \fontspec{texgyretermes-regular.otf}[WordSpace={2,3,4}] 22 | \MSG{fontdimen2 = \the\fontdimen2\font} 23 | \MSG{fontdimen3 = \the\fontdimen3\font} 24 | \MSG{fontdimen4 = \the\fontdimen4\font} 25 | 26 | \MSG{Back to `default' -- unchanged from previous!:} 27 | \fontspec{texgyretermes-regular.otf} 28 | \MSG{fontdimen2 = \the\fontdimen2\font} 29 | \MSG{fontdimen3 = \the\fontdimen3\font} 30 | \MSG{fontdimen4 = \the\fontdimen4\font} 31 | 32 | \MSG{Have to scale by close to unity to get back to default:} 33 | \fontspec{texgyretermes-regular.otf}[Scale=1.00001] 34 | \MSG{fontdimen2 = \the\fontdimen2\font} 35 | \MSG{fontdimen3 = \the\fontdimen3\font} 36 | \MSG{fontdimen4 = \the\fontdimen4\font} 37 | 38 | \end{document} 39 | -------------------------------------------------------------------------------- /testfiles/feat-wordspace.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Termes default: 4 | fontdimen2 = 2.5pt 5 | fontdimen3 = 1.25pt 6 | fontdimen4 = 0.83333pt 7 | WordSpace = 2: 8 | fontdimen2 = 5.0pt 9 | fontdimen3 = 2.5pt 10 | fontdimen4 = 1.66666pt 11 | WordSpace = 2,3,4: 12 | fontdimen2 = 10.0pt 13 | fontdimen3 = 7.5pt 14 | fontdimen4 = 6.66663pt 15 | Back to `default' -- unchanged from previous!: 16 | fontdimen2 = 10.0pt 17 | fontdimen3 = 7.5pt 18 | fontdimen4 = 6.66663pt 19 | Have to scale by close to unity to get back to default: 20 | fontdimen2 = 2.50005pt 21 | fontdimen3 = 1.25002pt 22 | fontdimen4 = 0.83334pt 23 | *************** 24 | Compilation 1 of test file completed with exit status 0 25 | -------------------------------------------------------------------------------- /testfiles/fontface-overwrite.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes-regular.otf(0)/m/n: 4 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 5 | TU/texgyretermes-regular.otf(0)/m/it: 6 | [texgyreheros-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 7 | TU/texgyretermes-regular.otf(0)/blub/it: 8 | [texgyreheros-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/fontface-overwrite.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \setmainfont{texgyretermes-regular.otf}% 4 | [ 5 | FontFace={m}{it}{texgyreheros-italic.otf}, 6 | FontFace={blub}{it}{texgyreheros-italic.otf}, 7 | ] 8 | \begin{document} 9 | 10 | Test 11 | \CURRNFSS 12 | 13 | \fontseries{m}\fontshape{it}\selectfont Test 14 | \CURRNFSS 15 | 16 | \fontseries{blub}\fontshape{it}\selectfont Test 17 | \CURRNFSS 18 | 19 | \end{document} 20 | -------------------------------------------------------------------------------- /testfiles/fontface-overwrite.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes-regular.otf(0)/m/n: 4 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 5 | TU/texgyretermes-regular.otf(0)/m/it: 6 | "[texgyreheros-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 7 | TU/texgyretermes-regular.otf(0)/blub/it: 8 | "[texgyreheros-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/fontface-spaces.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes-regular.otf(0)/m/n: 4 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 5 | TU/texgyretermes-regular.otf(0)/m/it: 6 | [texgyreheros-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 7 | TU/texgyretermes-regular.otf(0)/blub/it: 8 | [texgyrecursor-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 9 | TU/texgyretermes-regular.otf(0)/c/n: 10 | [texgyrebonum-italic.otf]:mode=node;script=latn;language=dflt;+tlig;color={FF0000}; 11 | *************** 12 | Compilation 1 of test file completed with exit status 0 13 | -------------------------------------------------------------------------------- /testfiles/fontface-spaces.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \setmainfont{texgyretermes-regular.otf}% 4 | [ 5 | FontFace = {m}{it} { texgyreheros-italic.otf }, 6 | FontFace = {blub}{it}{ texgyrecursor-italic.otf }, 7 | FontFace = {c}{n} { Font = texgyrebonum-italic.otf , Color = FF0000 }, 8 | ] 9 | \begin{document} 10 | 11 | Test 12 | \CURRNFSS 13 | 14 | \fontseries{m}\fontshape{it}\selectfont Test 15 | \CURRNFSS 16 | 17 | \fontseries{blub}\fontshape{it}\selectfont Test 18 | \CURRNFSS 19 | 20 | \fontseries{c}\fontshape{n}\selectfont Test 21 | \CURRNFSS 22 | 23 | \end{document} 24 | -------------------------------------------------------------------------------- /testfiles/fontface-spaces.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes-regular.otf(0)/m/n: 4 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 5 | TU/texgyretermes-regular.otf(0)/m/it: 6 | "[texgyreheros-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 7 | TU/texgyretermes-regular.otf(0)/blub/it: 8 | "[texgyrecursor-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 9 | TU/texgyretermes-regular.otf(0)/c/n: 10 | "[texgyrebonum-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=FF0000FF ;" at 10.0pt 11 | *************** 12 | Compilation 1 of test file completed with exit status 0 13 | -------------------------------------------------------------------------------- /testfiles/fontload-defaults-adding.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \MSG{=================} 9 | \MSG{All font defaults} 10 | \MSG{=================} 11 | 12 | \defaultfontfeatures{Letters=SmallCaps,Color=00AA00} 13 | \setmainfont{texgyrepagella-regular.otf} 14 | \setsansfont{texgyreheros-regular.otf} 15 | \rmfamily Roman \CURRNFSS \sffamily Sans \CURRNFSS 16 | 17 | \defaultfontfeatures{} 18 | \setmainfont{texgyrepagella-regular.otf} 19 | \setsansfont{texgyreheros-regular.otf} 20 | \rmfamily Roman \CURRNFSS \sffamily Sans \CURRNFSS 21 | 22 | \defaultfontfeatures{Letters=SmallCaps} 23 | \setmainfont{texgyrepagella-regular.otf} 24 | \defaultfontfeatures+{Color=00AA00} 25 | \setsansfont{texgyreheros-regular.otf} 26 | \rmfamily Roman \CURRNFSS \sffamily Sans \CURRNFSS 27 | 28 | 29 | \MSG{=================} 30 | \MSG{Family specific} 31 | \MSG{=================} 32 | 33 | \defaultfontfeatures{} 34 | \defaultfontfeatures[\rmfamily]{Letters=SmallCaps,Color=00AA00} 35 | \setmainfont{texgyrepagella-regular.otf} 36 | \setsansfont{texgyreheros-regular.otf} 37 | \rmfamily Roman \CURRNFSS \sffamily Sans \CURRNFSS 38 | 39 | \defaultfontfeatures[\rmfamily]{} 40 | \setmainfont{texgyrepagella-regular.otf} 41 | \setsansfont{texgyreheros-regular.otf} 42 | \rmfamily Roman \CURRNFSS \sffamily Sans \CURRNFSS 43 | 44 | \defaultfontfeatures[\rmfamily]{Letters=SmallCaps} 45 | \defaultfontfeatures+[\rmfamily]{Color=00AA00} 46 | \setmainfont{texgyrepagella-regular.otf} 47 | \setsansfont{texgyreheros-regular.otf} 48 | \rmfamily Roman \CURRNFSS \sffamily Sans \CURRNFSS 49 | 50 | \end{document} -------------------------------------------------------------------------------- /testfiles/fontload-defaults-boldfeatures.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrepagella-regular.otf(0)/m/n: 4 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 5 | TU/texgyrepagella-regular.otf(0)/b/n: 6 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;embolden=1.2;+tlig; 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/fontload-defaults-boldfeatures.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \defaultfontfeatures[texgyrepagella-regular.otf]{ 7 | BoldFont = *, 8 | BoldFeatures = {FakeBold = 1.2} 9 | } 10 | 11 | \begin{document} 12 | 13 | \setmainfont{texgyrepagella-regular.otf} 14 | 15 | x\CURRNFSS 16 | \textbf{x\CURRNFSS} 17 | 18 | \end{document} 19 | -------------------------------------------------------------------------------- /testfiles/fontload-defaults-boldfeatures.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrepagella-regular.otf(0)/m/n: 4 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 5 | TU/texgyrepagella-regular.otf(0)/b/n: 6 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;embolden=1.2;mapping=tex-text;" at 10.0pt 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/fontload-defaults-change.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | SET FONT FAMILIES 5 | TU/texgyretermes-regular.otf(0)/m/n: 6 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 7 | TU/texgyreheros-regular.otf(0)/m/n: 8 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 9 | TU/texgyrecursor-regular.otf(0)/m/n: 10 | [texgyrecursor-regular.otf]:mode=node;script=latn;language=dflt; 11 | REDEFINE FONT FAMILIES 12 | TU/lmr/m/n: 13 | [lmroman10-regular]:+tlig; 14 | TU/lmss/m/n: 15 | [lmsans10-regular]:+tlig; 16 | TU/lmtt/m/n: 17 | [lmmono10-regular]: 18 | SET FONT FAMILIES AGAIN 19 | TU/texgyretermes-regular.otf(0)/m/n: 20 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 21 | TU/texgyreheros-regular.otf(0)/m/n: 22 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 23 | TU/texgyrecursor-regular.otf(0)/m/n: 24 | [texgyrecursor-regular.otf]:mode=node;script=latn;language=dflt; 25 | *************** 26 | Compilation 1 of test file completed with exit status 0 27 | -------------------------------------------------------------------------------- /testfiles/fontload-defaults-change.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | \usepackage{fontspec} 4 | \begin{document} 5 | 6 | \TIMO 7 | 8 | \SEPARATOR 9 | \MSG{SET FONT FAMILIES} 10 | \setmainfont{texgyretermes-regular.otf} 11 | \setsansfont{texgyreheros-regular.otf} 12 | \setmonofont{texgyrecursor-regular.otf} 13 | 14 | \rmfamily 15 | \CURRNFSS 16 | 17 | \sffamily 18 | \CURRNFSS 19 | 20 | \ttfamily 21 | \CURRNFSS 22 | 23 | \SEPARATOR 24 | \MSG{REDEFINE FONT FAMILIES} 25 | \renewcommand\rmdefault{lmr} 26 | \renewcommand\sfdefault{lmss} 27 | \renewcommand\ttdefault{lmtt} 28 | 29 | \rmfamily 30 | \CURRNFSS 31 | 32 | \sffamily 33 | \CURRNFSS 34 | 35 | \ttfamily 36 | \CURRNFSS 37 | 38 | \SEPARATOR 39 | \MSG{SET FONT FAMILIES AGAIN} 40 | \setmainfont{texgyretermes-regular.otf} 41 | \setsansfont{texgyreheros-regular.otf} 42 | \setmonofont{texgyrecursor-regular.otf} 43 | 44 | \rmfamily 45 | \CURRNFSS 46 | 47 | \sffamily 48 | \CURRNFSS 49 | 50 | \ttfamily 51 | \CURRNFSS 52 | 53 | \end{document} 54 | -------------------------------------------------------------------------------- /testfiles/fontload-defaults-change.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | SET FONT FAMILIES 5 | TU/texgyretermes-regular.otf(0)/m/n: 6 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 7 | TU/texgyreheros-regular.otf(0)/m/n: 8 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 9 | TU/texgyrecursor-regular.otf(0)/m/n: 10 | "[texgyrecursor-regular.otf]/OT:script=latn;language=dflt;" at 10.0pt 11 | REDEFINE FONT FAMILIES 12 | TU/lmr/m/n: 13 | "[lmroman10-regular]:mapping=tex-text;" at 10.0pt 14 | TU/lmss/m/n: 15 | "[lmsans10-regular]:mapping=tex-text;" at 10.0pt 16 | TU/lmtt/m/n: 17 | "[lmmono10-regular]:" at 10.0pt 18 | SET FONT FAMILIES AGAIN 19 | TU/texgyretermes-regular.otf(0)/m/n: 20 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 21 | TU/texgyreheros-regular.otf(0)/m/n: 22 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 23 | TU/texgyrecursor-regular.otf(0)/m/n: 24 | "[texgyrecursor-regular.otf]/OT:script=latn;language=dflt;" at 10.0pt 25 | *************** 26 | Compilation 1 of test file completed with exit status 0 27 | -------------------------------------------------------------------------------- /testfiles/fontload-defaults.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | RM: 4 | TU/texgyrepagella-regular.otf(0)/m/n: 5 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 6 | SF: 7 | TU/texgyreheros-regular.otf(0)/m/n: 8 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 9 | TT: 10 | TU/texgyrecursor-regular.otf(0)/m/n: 11 | [texgyrecursor-regular.otf]:mode=node;script=latn;language=dflt;color={red}; 12 | "CODE": 13 | TU/texgyrecursor-regular.otf(1)/m/n: 14 | [texgyrecursor-regular.otf]:mode=node;script=latn;language=dflt;color={blue}; 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/fontload-defaults.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{xcolor,fontspec} 5 | 6 | \begin{document} 7 | 8 | \defaultfontfeatures[\ttfamily]{Color=red} 9 | \setmainfont{texgyrepagella-regular.otf} 10 | \setsansfont{texgyreheros-regular.otf} 11 | \setmonofont{texgyrecursor-regular.otf} 12 | \defaultfontfeatures[\codefont]{Color=blue} 13 | \newfontfamily\codefont{texgyrecursor-regular.otf} 14 | 15 | \MSG{RM:} 16 | `hello' 123 17 | \CURRNFSS 18 | 19 | \MSG{SF:} 20 | \sffamily 21 | `hello' 123 22 | \CURRNFSS 23 | 24 | \MSG{TT:} 25 | \ttfamily 26 | `hello' 123 27 | \CURRNFSS 28 | 29 | \MSG{"CODE":} 30 | \codefont 31 | hello again 32 | \CURRNFSS 33 | 34 | \end{document} 35 | -------------------------------------------------------------------------------- /testfiles/fontload-defaults.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | RM: 4 | TU/texgyrepagella-regular.otf(0)/m/n: 5 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 6 | SF: 7 | TU/texgyreheros-regular.otf(0)/m/n: 8 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 9 | TT: 10 | TU/texgyrecursor-regular.otf(0)/m/n: 11 | "[texgyrecursor-regular.otf]/OT:script=latn;language=dflt;color=FF0000FF ;" at 10.0pt 12 | "CODE": 13 | TU/texgyrecursor-regular.otf(1)/m/n: 14 | "[texgyrecursor-regular.otf]/OT:script=latn;language=dflt;color=0000FFFF ;" at 10.0pt 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/fontload-ext-mixed.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | LATO normally: 4 | TU/Lato-Regular.ttf(0)/m/n: 5 | [Lato-Regular.ttf]:mode=node;script=latn;language=dflt;+tlig; 6 | FIRA normally: 7 | TU/FiraSans-Bold.otf(0)/m/n: 8 | [FiraSans-Bold.otf]:mode=node;script=latn;language=dflt;+tlig; 9 | BOTH: 10 | TU/MyLato(0)/m/n: 11 | [Lato-Regular.ttf]:mode=node;script=latn;language=dflt;+tlig; 12 | TU/MyLato(0)/b/n: 13 | [FiraSans-Bold.otf]:mode=node;script=latn;language=dflt;+tlig; 14 | *************** 15 | Compilation 1 of test file completed with exit status 0 16 | -------------------------------------------------------------------------------- /testfiles/fontload-ext-mixed.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \MSG{LATO normally:} 9 | \setmainfont{Lato-Regular.ttf} 10 | hello \CURRNFSS 11 | 12 | \MSG{FIRA normally:} 13 | \setmainfont{FiraSans-Bold.otf} 14 | hello \CURRNFSS 15 | 16 | \MSG{BOTH:} 17 | \setmainfont{MyLato} 18 | [ 19 | UprightFont = Lato-Regular.ttf , 20 | BoldFont = FiraSans-Bold.otf , 21 | ] 22 | hello \CURRNFSS 23 | \bfseries 24 | hello \CURRNFSS 25 | 26 | \end{document} 27 | -------------------------------------------------------------------------------- /testfiles/fontload-ext-mixed.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | LATO normally: 4 | TU/Lato-Regular.ttf(0)/m/n: 5 | "[Lato-Regular.ttf]/OT:script=latn;language=dflt;mapping=tex-text;" 6 | FIRA normally: 7 | TU/FiraSans-Bold.otf(0)/m/n: 8 | "[FiraSans-Bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 9 | BOTH: 10 | TU/MyLato(0)/m/n: 11 | "[Lato-Regular.ttf]/OT:script=latn;language=dflt;mapping=tex-text;" 12 | TU/MyLato(0)/b/n: 13 | "[FiraSans-Bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 14 | *************** 15 | Compilation 1 of test file completed with exit status 0 16 | -------------------------------------------------------------------------------- /testfiles/fontload-ext.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrepagella-regular.otf(0)/m/n: 4 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 5 | TU/XX(0)/m/n: 6 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 7 | TU/XX(0)/m/it: 8 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 9 | TU/YY(0)/m/n: 10 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 11 | TU/YY(0)/m/it: 12 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 13 | *************** 14 | Compilation 1 of test file completed with exit status 0 15 | -------------------------------------------------------------------------------- /testfiles/fontload-ext.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \setmainfont{texgyrepagella-regular.otf} 9 | hello \CURRNFSS 10 | 11 | \setmainfont{XX}[ 12 | Extension = .otf , 13 | UprightFont = texgyrepagella-regular , 14 | BoldFont = texgyrepagella-bold , 15 | ItalicFont = texgyrepagella-italic , 16 | BoldItalicFont = texgyrepagella-bolditalic , 17 | ] 18 | hello \CURRNFSS 19 | \emph{hello \CURRNFSS} 20 | 21 | \setmainfont{YY}[ 22 | UprightFont = texgyrepagella-regular.otf , 23 | BoldFont = texgyrepagella-bold.otf , 24 | ItalicFont = texgyrepagella-italic.otf , 25 | BoldItalicFont = texgyrepagella-bolditalic.otf , 26 | ] 27 | hello \CURRNFSS 28 | \emph{hello \CURRNFSS} 29 | 30 | \end{document} 31 | -------------------------------------------------------------------------------- /testfiles/fontload-ext.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrepagella-regular.otf(0)/m/n: 4 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 5 | TU/XX(0)/m/n: 6 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 7 | TU/XX(0)/m/it: 8 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 9 | TU/YY(0)/m/n: 10 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 11 | TU/YY(0)/m/it: 12 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 13 | *************** 14 | Compilation 1 of test file completed with exit status 0 15 | -------------------------------------------------------------------------------- /testfiles/fontload-fontface-1.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyre(0)/m/n: 4 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 5 | TU/texgyre(0)/c/n: 6 | [texgyrebonum-regular.otf]:mode=node;script=latn;language=dflt;+tlig;color={FF0000}; 7 | TU/texgyre(0)/nc/n: 8 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/fontload-fontface-1.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \setmainfont{texgyre}[ 9 | Extension = .otf , 10 | UprightFont = *pagella-regular, 11 | FontFace = {c}{n}{Font = *bonum-regular , Color = FF0000 }, 12 | FontFace = {nc}{n}{*heros-regular} 13 | ] 14 | 15 | pagella 16 | \CURRNFSS 17 | 18 | \fontseries{c}\selectfont bonum (red) 19 | \CURRNFSS 20 | 21 | \fontseries{nc}\selectfont heros 22 | \CURRNFSS 23 | 24 | \end{document} 25 | -------------------------------------------------------------------------------- /testfiles/fontload-fontface-1.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyre(0)/m/n: 4 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 5 | TU/texgyre(0)/c/n: 6 | "[texgyrebonum-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=FF0000FF ;" at 10.0pt 7 | TU/texgyre(0)/nc/n: 8 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/fontload-fontface-2-sc.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \begin{document} 6 | 7 | \def\x{regular \CURRNFSS \textsc{small caps \CURRNFSS}\par} 8 | 9 | \MSG{SERIES (sc shapes defined)} 10 | 11 | \begingroup 12 | \setmainfont{texgyrepagella-regular.otf}[ 13 | FontFace = {col1}{n}{ Font = * , Color = FF0000 } , 14 | FontFace = {col2}{n}{ Font = * , Color = 0000FF } 15 | ] 16 | \x 17 | \fontseries{col1}\selectfont\x 18 | \fontseries{col2}\selectfont\x 19 | \endgroup 20 | 21 | \MSG{SHAPE (sc shapes not defined; falls back to default)} 22 | 23 | \begingroup 24 | \setmainfont{texgyrepagella-regular.otf}[ 25 | FontFace = {m}{col1}{ Font = * , Color = FF0000 } , 26 | FontFace = {m}{col2}{ Font = * , Color = 0000FF } 27 | ] 28 | \x 29 | \fontshape{col1}\selectfont\x 30 | \fontshape{col2}\selectfont\x 31 | \endgroup 32 | 33 | \end{document} 34 | -------------------------------------------------------------------------------- /testfiles/fontload-fontface-3-sizing.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \begin{document} 6 | 7 | \setmainfont{SourceCodePro-Regular.otf}[ 8 | Color = 00AA00 , 9 | UprightFeatures = { 10 | SizeFeatures = { 11 | {Size = -10, Font = SourceCodePro-Medium.otf,}, 12 | {Size = 10-15, Font = SourceCodePro-Regular.otf,}, 13 | {Size = 15-, Font = SourceCodePro-Light.otf,}, 14 | } 15 | }, 16 | ItalicFont = SourceCodePro-RegularIt.otf, 17 | FontFace = {c}{n}{ 18 | Font = texgyrecursor-regular.otf, 19 | SizeFeatures = { 20 | {Size = -10,Color = FF0000,Font=SourceCodePro-MediumIt.otf}, 21 | {Size = 10-15,Color = FF00FF}, 22 | {Size = 15-,Color = 0000FF,Font=SourceCodePro-LightIt.otf}, 23 | }, 24 | }, 25 | FontFace = {nc}{n}{texgyreheros-regular.otf} 26 | ] 27 | 28 | \def\x{{\tiny small \CURRNFSS 29 | \normalsize normal \CURRNFSS 30 | \Huge huge \CURRNFSS}} 31 | 32 | \MSG{NORMAL} 33 | \noindent\x --- `optical' sizes 34 | 35 | \MSG{ITALIC} 36 | \noindent\textit{\x} --- italic just uses one face 37 | 38 | \MSG{FONTSERIES C} 39 | \fontseries{c}\selectfont 40 | \noindent\x --- three serif faces with different colours 41 | 42 | \MSG{FONTSERIES NC} 43 | \fontseries{nc}\selectfont 44 | \noindent\x --- plain Helvetica 45 | 46 | \end{document} 47 | -------------------------------------------------------------------------------- /testfiles/fontload-fontname.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | RM: 4 | TU/TeXGyrePagella(0)/m/n: 5 | "name:TeX Gyre Pagella:mode=node;script=latn;language=dflt;+tlig;" 6 | BF: 7 | TU/TeXGyrePagella(0)/b/n: 8 | "name:TeX Gyre Pagella/B:mode=node;script=latn;language=dflt;+tlig;" 9 | IT: 10 | TU/TeXGyrePagella(0)/m/it: 11 | "name:TeX Gyre Pagella/I:mode=node;script=latn;language=dflt;+tlig;" 12 | BFIT: 13 | TU/TeXGyrePagella(0)/b/it: 14 | "name:TeX Gyre Pagella/BI:mode=node;script=latn;language=dflt;+tlig;" 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/fontload-fontname.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | 3 | \usepackage{fontspec} 4 | 5 | \begin{document} 6 | % Only test in LuaTeX since in XeTeX it's unclear if the fonts ar available 7 | \LUATEXONLY 8 | 9 | \setmainfont{TeX Gyre Pagella} 10 | 11 | \MSG{RM:} 12 | `hello' 123 13 | \CURRNFSS 14 | 15 | \MSG{BF:} 16 | \bfseries 17 | `hello' 123 18 | \CURRNFSS 19 | 20 | \MSG{IT:} 21 | \mdseries\itshape 22 | `hello' 123 23 | \CURRNFSS 24 | 25 | \MSG{BFIT:} 26 | \bfseries 27 | `hello' 123 28 | \CURRNFSS 29 | 30 | \end{document} 31 | -------------------------------------------------------------------------------- /testfiles/fontload-fontname.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | *** LuaTeX-only test *** 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/fontload-fontspec-file-case.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Fira Sans: 4 | TU/FiraSans-Regular.otf(0)/m/n: 5 | [FiraSans-Regular.otf]:mode=node;script=latn;language=dflt;+tlig;color={AABBCC}; 6 | TU/FiraSans-Regular.otf(0)/m/it: 7 | [FiraSans-Italic.otf]:mode=node;script=latn;language=dflt;+tlig;color={AABBCC}; 8 | TU/FiraSans-Regular.otf(0)/b/n: 9 | [FiraSans-Bold.otf]:mode=node;script=latn;language=dflt;+tlig;color={AABBCC}; 10 | TU/FiraSans-Regular.otf(0)/b/it: 11 | [FiraSans-BoldItalic.otf]:mode=node;script=latn;language=dflt;+tlig;color={AABBCC}; 12 | *************** 13 | Compilation 1 of test file completed with exit status 0 14 | -------------------------------------------------------------------------------- /testfiles/fontload-fontspec-file-case.lvt: -------------------------------------------------------------------------------- 1 | 2 | \begin{filecontents*}{FiraSans-Regular.fontspec} 3 | \defaultfontfeatures[FiraSans-Regular]{ 4 | Extension = .otf , 5 | UprightFont = FiraSans-Regular , 6 | BoldFont = FiraSans-Bold , 7 | ItalicFont = FiraSans-Italic , 8 | BoldItalicFont = FiraSans-BoldItalic , 9 | Colour = AABBCC , 10 | } 11 | \end{filecontents*} 12 | 13 | \input{fontspec-testsetup.tex} 14 | 15 | \usepackage{fontspec} 16 | 17 | \begin{document} 18 | 19 | \MSG{Fira Sans:} 20 | \setmainfont{FiraSans-Regular.otf} 21 | \CURRFAMILY 22 | 23 | 24 | \end{document} 25 | -------------------------------------------------------------------------------- /testfiles/fontload-fontspec-file-case.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Fira Sans: 4 | TU/FiraSans-Regular.otf(0)/m/n: 5 | "[FiraSans-Regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=AABBCCFF ;" 6 | TU/FiraSans-Regular.otf(0)/m/it: 7 | "[FiraSans-Italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=AABBCCFF ;" 8 | TU/FiraSans-Regular.otf(0)/b/n: 9 | "[FiraSans-Bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=AABBCCFF ;" 10 | TU/FiraSans-Regular.otf(0)/b/it: 11 | "[FiraSans-BoldItalic.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=AABBCCFF ;" 12 | *************** 13 | Compilation 1 of test file completed with exit status 0 14 | -------------------------------------------------------------------------------- /testfiles/fontload-fontspec-file.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Bare bones colour red loaded from file: 4 | TU/texgyreschola-regular.otf(0)/m/n: 5 | [texgyreschola-regular.otf]:mode=node;script=latn;language=dflt;+tlig;color={FF0000}; 6 | New font name, colour blue, loaded from file: 7 | TU/TeXGyreTermes(0)/m/n: 8 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;+tlig;color={0000FF}; 9 | A more comprehensive family (note nested defn for BI shape): 10 | TU/MyHeros(0)/m/n: 11 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;+tlig;color={119944}; 12 | TU/MyHeros(0)/b/n: 13 | [texgyreheros-bold.otf]:mode=node;script=latn;language=dflt;+tlig;color={119944}; 14 | TU/MyHeros(0)/m/it: 15 | [texgyreheros-italic.otf]:mode=node;script=latn;language=dflt;+tlig;color={119944}; 16 | TU/MyHeros(0)/b/it: 17 | [texgyreheros-bolditalic.otf]:mode=node;script=latn;language=dflt;+tlig;color={223355}; 18 | *************** 19 | Compilation 1 of test file completed with exit status 0 20 | -------------------------------------------------------------------------------- /testfiles/fontload-fontspec-file.lvt: -------------------------------------------------------------------------------- 1 | 2 | \begin{filecontents*}{texgyreschola-regular.fontspec} 3 | \defaultfontfeatures[texgyreschola-regular.otf]{Colour=FF0000} 4 | \end{filecontents*} 5 | \begin{filecontents*}{TeXGyreTermes.fontspec} 6 | \defaultfontfeatures[TeX Gyre Termes]{ 7 | ExternalLocation, 8 | UprightFont = texgyretermes-regular.otf, 9 | Colour=0000FF 10 | } 11 | \end{filecontents*} 12 | 13 | \begin{filecontents*}{MyHeros.fontspec} 14 | \defaultfontfeatures[My Heros] 15 | { 16 | Colour = 119944 , 17 | Extension = .otf , 18 | UprightFont = texgyreheros-regular , 19 | BoldFont = texgyreheros-bold , 20 | ItalicFont = texgyreheros-italic , 21 | BoldItalicFont = tgheros-bolditalic , 22 | } 23 | \end{filecontents*} 24 | 25 | \begin{filecontents*}{tgheros-bolditalic.fontspec} 26 | \defaultfontfeatures[tgheros-bolditalic] 27 | { 28 | Font = texgyreheros-bolditalic , 29 | Colour = 223355 , 30 | } 31 | \end{filecontents*} 32 | 33 | \input{fontspec-testsetup.tex} 34 | 35 | \usepackage{fontspec} 36 | 37 | \begin{document} 38 | 39 | \MSG{Bare bones colour red loaded from file:} 40 | \setmainfont{texgyreschola-regular.otf} 41 | schola 42 | \CURRNFSS 43 | 44 | \MSG{New font name, colour blue, loaded from file:} 45 | \setmainfont{TeX Gyre Termes} 46 | termes colour blue loaded from file 47 | \CURRNFSS 48 | 49 | \MSG{A more comprehensive family (note nested defn for BI shape):} 50 | \setmainfont{My Heros} 51 | heros from texmf: 52 | hello \CURRNFSS \textbf{hello \CURRNFSS } 53 | \emph{hello \CURRNFSS \textbf{hello \CURRNFSS }} 54 | 55 | \end{document} 56 | -------------------------------------------------------------------------------- /testfiles/fontload-fontspec-file.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Bare bones colour red loaded from file: 4 | TU/texgyreschola-regular.otf(0)/m/n: 5 | "[texgyreschola-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=FF0000FF ;" at 10.0pt 6 | New font name, colour blue, loaded from file: 7 | TU/TeXGyreTermes(0)/m/n: 8 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=0000FFFF ;" at 10.0pt 9 | A more comprehensive family (note nested defn for BI shape): 10 | TU/MyHeros(0)/m/n: 11 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=119944FF ;" at 10.0pt 12 | TU/MyHeros(0)/b/n: 13 | "[texgyreheros-bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=119944FF ;" at 10.0pt 14 | TU/MyHeros(0)/m/it: 15 | "[texgyreheros-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=119944FF ;" at 10.0pt 16 | TU/MyHeros(0)/b/it: 17 | "[texgyreheros-bolditalic.otf]/OT:script=latn;language=dflt;mapping=tex-text;color=223355FF ;" at 10.0pt 18 | *************** 19 | Compilation 1 of test file completed with exit status 0 20 | -------------------------------------------------------------------------------- /testfiles/fontload-mainsans.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes(0)/m/n: 4 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 5 | TU/texgyretermes(0)/b/n: 6 | [texgyretermes-bold.otf]:mode=node;script=latn;language=dflt;+tlig; 7 | TU/texgyretermes(0)/m/it: 8 | [texgyretermes-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 9 | TU/texgyretermes(0)/b/it: 10 | [texgyretermes-bolditalic.otf]:mode=node;script=latn;language=dflt;+tlig; 11 | TU/texgyreheros(0)/m/n: 12 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 13 | TU/texgyreheros(0)/b/n: 14 | [texgyreheros-bold.otf]:mode=node;script=latn;language=dflt;+tlig; 15 | TU/texgyreheros(0)/m/it: 16 | [texgyreheros-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 17 | TU/texgyreheros(0)/b/it: 18 | [texgyreheros-bolditalic.otf]:mode=node;script=latn;language=dflt;+tlig; 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/fontload-mainsans.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \setmainfont{texgyretermes}[ 7 | Extension = .otf, 8 | UprightFont = *-regular, 9 | BoldFont = *-bold, 10 | ItalicFont = *-italic, 11 | BoldItalicFont = *-bolditalic 12 | ] 13 | \setsansfont{texgyreheros}[ 14 | Extension = .otf, 15 | UprightFont = *-regular, 16 | BoldFont = *-bold, 17 | ItalicFont = *-italic, 18 | BoldItalicFont = *-bolditalic 19 | ] 20 | 21 | \begin{document} 22 | 23 | {Test\CURRNFSS} \par 24 | {\bfseries Test\CURRNFSS} \par 25 | {\itshape Test\CURRNFSS} \par 26 | {\bfseries\itshape Test\CURRNFSS} \par 27 | {\sffamily Test\CURRNFSS} \par 28 | {\bfseries\sffamily Test\CURRNFSS} \par 29 | {\itshape\sffamily Test\CURRNFSS} \par 30 | {\bfseries\itshape\sffamily Test\CURRNFSS} 31 | 32 | \end{document} 33 | -------------------------------------------------------------------------------- /testfiles/fontload-mainsans.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes(0)/m/n: 4 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 5 | TU/texgyretermes(0)/b/n: 6 | "[texgyretermes-bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 7 | TU/texgyretermes(0)/m/it: 8 | "[texgyretermes-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 9 | TU/texgyretermes(0)/b/it: 10 | "[texgyretermes-bolditalic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 11 | TU/texgyreheros(0)/m/n: 12 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 13 | TU/texgyreheros(0)/b/n: 14 | "[texgyreheros-bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 15 | TU/texgyreheros(0)/m/it: 16 | "[texgyreheros-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 17 | TU/texgyreheros(0)/b/it: 18 | "[texgyreheros-bolditalic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/fontload-mathetc.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | No validation checks (yet). 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/fontload-mathetc.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{xcolor,fontspec} 5 | 6 | \setmainfont{texgyrepagella-regular.otf} 7 | \setboldmathrm{texgyrepagella-bold.otf} 8 | \setmathrm{texgyrepagella-regular.otf} 9 | \setmathsf{texgyreheros-regular.otf} 10 | \setmathtt{texgyrecursor-regular.otf} 11 | 12 | \begin{document} 13 | 14 | \MSG{No validation checks (yet).} 15 | 16 | \end{document} 17 | -------------------------------------------------------------------------------- /testfiles/fontload-mathetc.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | No validation checks (yet). 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/fontload-nfssfamily-1.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Default font: 4 | TU/lmr/m/n: 5 | [lmroman10-regular]:+tlig; 6 | Code with particular NFSS family font: 7 | TU/ABC/m/n: 8 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={FF0000}; 9 | Back to normal font: 10 | TU/lmr/m/n: 11 | [lmroman10-regular]:+tlig; 12 | Loading NFSS family explicit: 13 | TU/ABC/m/n: 14 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={FF0000}; 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/fontload-nfssfamily-1.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \defaultfontfeatures[\codefont]{Color=FF0000} 6 | \newfontfamily\codefont[NFSSFamily=ABC]{texgyreheros-regular.otf} 7 | 8 | \MSG{Default font:} 9 | `hello' 123 10 | \CURRNFSS 11 | 12 | \MSG{Code with particular NFSS family font:} 13 | \codefont 14 | hello again 15 | \CURRNFSS 16 | 17 | \MSG{Back to normal font:} 18 | \normalfont 19 | bleah 20 | \CURRNFSS 21 | 22 | \MSG{Loading NFSS family explicit:} 23 | \fontfamily{ABC}\selectfont 24 | hi 25 | \CURRNFSS 26 | 27 | \end{document} 28 | -------------------------------------------------------------------------------- /testfiles/fontload-nfssfamily-1.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Default font: 4 | TU/lmr/m/n: 5 | "[lmroman10-regular]:mapping=tex-text;" at 10.0pt 6 | Code with particular NFSS family font: 7 | TU/ABC/m/n: 8 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=FF0000FF ;" at 10.0pt 9 | Back to normal font: 10 | TU/lmr/m/n: 11 | "[lmroman10-regular]:mapping=tex-text;" at 10.0pt 12 | Loading NFSS family explicit: 13 | TU/ABC/m/n: 14 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=FF0000FF ;" at 10.0pt 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/fontload-nfssfamily-2.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | MANUAL FONT SELECTION: 4 | After DeclareFontShape: 5 | TU/newfoo/m/n: 6 | [texgyrepagella-regular.otf] 7 | After DeclareFontShape again: 8 | TU/newfoo/m/n: 9 | [texgyrepagella-regular.otf] 10 | After resetting then DeclareFontShape: 11 | TU/newfoo/m/n: 12 | [texgyreheros-regular.otf]:color=FFAA00 13 | USING FONTSPEC: 14 | TU/foo/m/n: 15 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;color={FF0000}; 16 | TU/foo/m/sc: 17 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+smcp;color={FF0000}; 18 | TU/foo/m/n: 19 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;color={FF00FF}; 20 | TU/foo/m/sc: 21 | [texgyreheros-regular.otf]:mode=node;script=latn;language=dflt;+smcp;color={FF00FF}; 22 | *************** 23 | Compilation 1 of test file completed with exit status 0 24 | -------------------------------------------------------------------------------- /testfiles/fontload-nfssfamily-2.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \begin{document} 6 | 7 | \makeatletter 8 | 9 | \MSG{MANUAL FONT SELECTION:} 10 | 11 | \DeclareFontFamily{TU}{newfoo}{} 12 | \DeclareFontShape{TU}{newfoo}{m}{n}{<->"[texgyrepagella-regular.otf]"}{} 13 | \fontfamily{newfoo}\selectfont 14 | \MSG{After DeclareFontShape:} 15 | \CURRNFSS 16 | 17 | \DeclareFontShape{TU}{newfoo}{m}{n}{<->"[texgyreheros-regular.otf]"}{} 18 | \fontfamily{newfoo}\selectfont 19 | \MSG{After DeclareFontShape again:} 20 | \CURRNFSS 21 | 22 | \begingroup 23 | \normalsize 24 | \global\expandafter\let\csname TU/newfoo/m/n/\f@size\endcsname\relax 25 | \endgroup 26 | \DeclareFontShape{TU}{newfoo}{m}{n}{<->"[texgyreheros-regular.otf]:color=FFAA00"}{} 27 | \fontfamily{newfoo}\selectfont 28 | \MSG{After resetting then DeclareFontShape:} 29 | \CURRNFSS 30 | 31 | \MSG{USING FONTSPEC:} 32 | 33 | \def\x{\fontfamily{foo}\selectfont regular \CURRNFSS \textsc{small caps \CURRNFSS} } 34 | 35 | \fontspec[NFSSFamily=foo,Color=FF0000]{texgyrepagella-regular.otf} 36 | \normalfont\x 37 | 38 | \fontspec[NFSSFamily=foo,Color=FF00FF]{texgyreheros-regular.otf} 39 | \normalfont\x 40 | 41 | \end{document} 42 | -------------------------------------------------------------------------------- /testfiles/fontload-nfssfamily-2.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | MANUAL FONT SELECTION: 4 | After DeclareFontShape: 5 | TU/newfoo/m/n: 6 | "[texgyrepagella-regular.otf]" at 10.0pt 7 | After DeclareFontShape again: 8 | TU/newfoo/m/n: 9 | "[texgyrepagella-regular.otf]" at 10.0pt 10 | After resetting then DeclareFontShape: 11 | TU/newfoo/m/n: 12 | "[texgyreheros-regular.otf]:color=FFAA00" at 10.0pt 13 | USING FONTSPEC: 14 | TU/foo/m/n: 15 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;color=FF0000FF ;" at 10.0pt 16 | TU/foo/m/sc: 17 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+smcp;color=FF0000FF ;" at 10.0pt 18 | TU/foo/m/n: 19 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;color=FF00FFFF ;" at 10.0pt 20 | TU/foo/m/sc: 21 | "[texgyreheros-regular.otf]/OT:script=latn;language=dflt;+smcp;color=FF00FFFF ;" at 10.0pt 22 | *************** 23 | Compilation 1 of test file completed with exit status 0 24 | -------------------------------------------------------------------------------- /testfiles/fontload-onesize-nosc.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | This originally was a bug report. One of these fonts lacks small caps, and at one stage this caused a problem. 4 | TU/TimesLTStd(0)/m/n: 5 | [TimesLTStd-Roman.otf]:mode=node;script=latn;language=dflt;+tlig; at 10.0pt 6 | TU/TimesLTStd(0)/m/sc: 7 | [TimesLTStd-Roman.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; at 10.0pt 8 | TU/TimesLTStd(0)/b/n: 9 | [TimesLTStd-Bold.otf]:mode=node;script=latn;language=dflt;+tlig; at 10.0pt 10 | TU/TimesLTStd(0)/b/sc: 11 | [TimesLTStd-Bold.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; at 10.0pt 12 | TU/TimesLTStd(0)/m/n: 13 | [TimesTenLTStd-Roman.otf]:mode=node;script=latn;language=dflt;+tlig; at 9.0pt 14 | TU/TimesLTStd(0)/m/sc: 15 | [TimesTenLTStd-Roman.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; at 9.0pt 16 | TU/TimesLTStd(0)/b/n: 17 | [TimesTenLTStd-Bold.otf]:mode=node;script=latn;language=dflt;+tlig; at 9.0pt 18 | TU/TimesLTStd(0)/b/sc: 19 | cmr10 20 | *************** 21 | Compilation 1 of test file completed with exit status 256 22 | -------------------------------------------------------------------------------- /testfiles/fontload-onesize-nosc.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \setmainfont{TimesLTStd}[ Extension = .otf , 4 | UprightFont={*-Roman}, 5 | UprightFeatures={ 6 | SizeFeatures={ {Size=10-}, 7 | {Size=-10, Font={TimesTenLTStd-Roman}} 8 | }}, 9 | BoldFont={*-Bold}, 10 | BoldFeatures={ 11 | SizeFeatures={ {Size=10-}, 12 | {Size=-10, Font={TimesTenLTStd-Bold}} 13 | }}, 14 | ] 15 | \begin{document} 16 | 17 | \MSG{This originally was a bug report. One of these fonts lacks small caps, and at one stage this caused a problem.} 18 | 19 | {\mdseries \CURRNFSS medium {\scshape \CURRNFSS Medium}} 20 | {\bfseries \CURRNFSS bold {\scshape \CURRNFSS Bold}} 21 | 22 | \small 23 | 24 | \mdseries \CURRNFSS medium {\scshape \CURRNFSS Medium}} 25 | \bfseries \CURRNFSS bold {\scshape Bold \CURRNFSS error!}} 26 | 27 | \end{document} 28 | -------------------------------------------------------------------------------- /testfiles/fontload-onesize-nosc.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | This originally was a bug report. One of these fonts lacks small caps, and at one stage this caused a problem. 4 | TU/TimesLTStd(0)/m/n: 5 | "[TimesLTStd-Roman.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 6 | TU/TimesLTStd(0)/m/sc: 7 | "[TimesLTStd-Roman.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 10.0pt 8 | TU/TimesLTStd(0)/b/n: 9 | "[TimesLTStd-Bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 10 | TU/TimesLTStd(0)/b/sc: 11 | "[TimesLTStd-Bold.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 10.0pt 12 | TU/TimesLTStd(0)/m/n: 13 | "[TimesTenLTStd-Roman.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 9.0pt 14 | TU/TimesLTStd(0)/m/sc: 15 | "[TimesTenLTStd-Roman.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 9.0pt 16 | TU/TimesLTStd(0)/b/n: 17 | "[TimesTenLTStd-Bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 9.0pt 18 | TU/TimesLTStd(0)/b/sc: 19 | cmr10 20 | *************** 21 | Compilation 1 of test file completed with exit status 256 22 | -------------------------------------------------------------------------------- /testfiles/fontload-scfeat-nesting.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes(0)/m/n: 4 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;color={220022}; 5 | TU/texgyretermes(0)/m/sc: 6 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;+smcp;color={115511}; 7 | TU/texgyretermes(0)/m/it: 8 | [texgyretermes-italic.otf]:mode=node;script=latn;language=dflt;color={2244FF}; 9 | TU/texgyretermes(0)/m/scit: 10 | [texgyretermes-italic.otf]:mode=node;script=latn;language=dflt;+smcp;color={112299}; 11 | TU/texgyretermes(0)/b/n: 12 | [texgyretermes-bold.otf]:mode=node;script=latn;language=dflt;color={FF4422}; 13 | TU/texgyretermes(0)/b/sc: 14 | [texgyretermes-bold.otf]:mode=node;script=latn;language=dflt;+smcp;color={992211}; 15 | TU/texgyretermes(0)/b/it: 16 | [texgyretermes-bolditalic.otf]:mode=node;script=latn;language=dflt;color={888844}; 17 | TU/texgyretermes(0)/b/scit: 18 | [texgyretermes-bolditalic.otf]:mode=node;script=latn;language=dflt;+smcp;color={444422}; 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/fontload-scfeat-nesting.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \usepackage{xcolor} 6 | 7 | \begin{document} 8 | 9 | \fontspec[ 10 | Extension=.otf, 11 | UprightFont=*-regular, 12 | ItalicFont=*-italic, 13 | BoldFont=*-bold, 14 | BoldItalicFont=*-bolditalic, 15 | UprightFeatures={Color = 220022, 16 | SmallCapsFeatures = {Color=115511}}, 17 | ItalicFeatures={Color = 2244FF, 18 | SmallCapsFeatures = {Color=112299}}, 19 | BoldFeatures={Color = FF4422, 20 | SmallCapsFeatures = {Color=992211}}, 21 | BoldItalicFeatures={Color = 888844, 22 | SmallCapsFeatures = {Color=444422}}, 23 | ]{texgyretermes} 24 | 25 | Upright \CURRNFSS {\scshape Small Caps \CURRNFSS}\\ 26 | 27 | \itshape Italic \CURRNFSS {\scshape Italic Small Caps \CURRNFSS}\\ 28 | 29 | \upshape\bfseries Bold \CURRNFSS {\scshape Bold Small Caps \CURRNFSS}\\ 30 | 31 | \itshape Bold Italic \CURRNFSS {\scshape Bold Italic Small Caps \CURRNFSS} 32 | 33 | \end{document} -------------------------------------------------------------------------------- /testfiles/fontload-scfeat-nesting.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes(0)/m/n: 4 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;color=220022FF ;" at 10.0pt 5 | TU/texgyretermes(0)/m/sc: 6 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;+smcp;color=115511FF ;" at 10.0pt 7 | TU/texgyretermes(0)/m/it: 8 | "[texgyretermes-italic.otf]/OT:script=latn;language=dflt;color=2244FFFF ;" at 10.0pt 9 | TU/texgyretermes(0)/m/scit: 10 | "[texgyretermes-italic.otf]/OT:script=latn;language=dflt;+smcp;color=112299FF ;" at 10.0pt 11 | TU/texgyretermes(0)/b/n: 12 | "[texgyretermes-bold.otf]/OT:script=latn;language=dflt;color=FF4422FF ;" at 10.0pt 13 | TU/texgyretermes(0)/b/sc: 14 | "[texgyretermes-bold.otf]/OT:script=latn;language=dflt;+smcp;color=992211FF ;" at 10.0pt 15 | TU/texgyretermes(0)/b/it: 16 | "[texgyretermes-bolditalic.otf]/OT:script=latn;language=dflt;color=888844FF ;" at 10.0pt 17 | TU/texgyretermes(0)/b/scit: 18 | "[texgyretermes-bolditalic.otf]/OT:script=latn;language=dflt;+smcp;color=444422FF ;" at 10.0pt 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/fontload-sizefeatures-1.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrechorus-mediumitalic.otf(0)/m/n: 4 | [texgyrebonum-italic.otf]:mode=node;script=latn;language=dflt;color={AA0000}; at 7.0pt 5 | TU/texgyrechorus-mediumitalic.otf(0)/m/n: 6 | [texgyrechorus-mediumitalic.otf]:mode=node;script=latn;language=dflt;color={00AA00}; 7 | TU/texgyrechorus-mediumitalic.otf(0)/m/n: 8 | [texgyrechorus-mediumitalic.otf]:mode=node;script=latn;language=dflt;color={0000AA}; at 14.4pt 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/fontload-sizefeatures-1.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \fontspec[ 9 | SizeFeatures={ 10 | {Size={-8}, Font=texgyrebonum-italic.otf, Color=AA0000}, 11 | {Size={8-14}, Color=00AA00}, 12 | {Size={14-}, Color=0000AA}} ]{texgyrechorus-mediumitalic.otf} 13 | 14 | {\scriptsize Small \CURRNFSS} 15 | 16 | Normal size \CURRNFSS 17 | 18 | {\Large Large \CURRNFSS} 19 | 20 | \end{document} -------------------------------------------------------------------------------- /testfiles/fontload-sizefeatures-1.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrechorus-mediumitalic.otf(0)/m/n: 4 | "[texgyrebonum-italic.otf]/OT:script=latn;language=dflt;color=AA0000FF ;" at 7.0pt 5 | TU/texgyrechorus-mediumitalic.otf(0)/m/n: 6 | "[texgyrechorus-mediumitalic.otf]/OT:script=latn;language=dflt;color=00AA00FF ;" at 10.0pt 7 | TU/texgyrechorus-mediumitalic.otf(0)/m/n: 8 | "[texgyrechorus-mediumitalic.otf]/OT:script=latn;language=dflt;color=0000AAFF ;" at 14.4pt 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/fontload-sizefeatures-2-nesting.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | \setmainfont 8 | [ 9 | Extension={.otf}, 10 | UprightFont={*-regular}, 11 | UprightFeatures= 12 | { 13 | SizeFeatures= 14 | { 15 | {Size=-10,SmallCapsFont=texgyreheros-regular,SmallCapsFeatures={Letters=SmallCaps,Color=0000FF},Color=FF0000}, 16 | {Size=10-,SmallCapsFont=texgyreheros-regular,SmallCapsFeatures={Letters=SmallCaps,Color=FF00FF},Color=00FF00} 17 | }, 18 | }, 19 | ItalicFont={*-italic}, 20 | ItalicFeatures={ 21 | SizeFeatures= 22 | { 23 | {Size=-10,Font=texgyretermes-italic,SmallCapsFeatures={Color=0000AA},Color=AA0000}, 24 | {Size=10-,SmallCapsFeatures={Color=AA00AA},Color=00AA00} 25 | }, 26 | }, 27 | BoldFont={*-bold}, 28 | BoldFeatures={ 29 | SizeFeatures= 30 | { 31 | {Size=-10,SmallCapsFeatures={Color=000077},Color=770000}, 32 | {Size=10-,SmallCapsFeatures={Color=770077},Color=007700} 33 | }, 34 | }, 35 | BoldItalicFont={*-bolditalic}, 36 | BoldItalicFeatures={ 37 | SizeFeatures= 38 | { 39 | {Size=-10,SmallCapsFeatures={Color=000044},Color=440000}, 40 | {Size=10-,SmallCapsFeatures={Color=440044},Color=004400} 41 | }, 42 | }, 43 | ] 44 | {texgyrepagella} 45 | 46 | \def\x{regular \FONTNAME \textsc{small caps \FONTNAME}\par} 47 | \def\xx{\small \x \large \x} 48 | 49 | \xx 50 | 51 | \itshape 52 | \xx 53 | 54 | \upshape\bfseries 55 | \xx 56 | 57 | \itshape 58 | \xx 59 | 60 | \end{document} -------------------------------------------------------------------------------- /testfiles/fontload-sl-fsfile.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/xxcmunrm(0)/m/sl: 4 | [cmunsl.otf]:mode=node;script=latn;language=dflt;+tlig; 5 | TU/xxcmunrm(0)/b/sl: 6 | [cmunbl.otf]:mode=node;script=latn;language=dflt;+tlig; 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/fontload-sl-fsfile.lvt: -------------------------------------------------------------------------------- 1 | 2 | \begin{filecontents}{xxcmunrm.fontspec} 3 | \defaultfontfeatures[xxcmunrm] 4 | { 5 | Extension = .otf, 6 | UprightFont = cmunrm , 7 | ItalicFont = cmunti , 8 | % 9 | SlantedFont = cmunsl , 10 | BoldSlantedFont = cmunbl , 11 | % 12 | BoldFont = cmunbx , 13 | BoldItalicFont = cmunbi , 14 | } 15 | \end{filecontents} 16 | 17 | \input{fontspec-testsetup.tex} 18 | 19 | \usepackage{fontspec} 20 | \setmainfont{xxcmunrm} 21 | 22 | \begin{document} 23 | 24 | \textsl{slanted \CURRNFSS} 25 | \textbf{\textsl{slanted \CURRNFSS}} 26 | 27 | \end{document} 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /testfiles/fontload-sl-fsfile.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/xxcmunrm(0)/m/sl: 4 | "[cmunsl.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 5 | TU/xxcmunrm(0)/b/sl: 6 | "[cmunbl.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/fontload-sl.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \setmainfont{texgyrepagella-regular.otf}[ItalicFont=texgyrepagella-italic.otf] 6 | 7 | \begin{document} 8 | 9 | \MSG{Pagella as main font:} 10 | \CURRNFSS 11 | 12 | \MSG{Checking small caps:} 13 | \textsc{small caps \CURRNFSS} 14 | 15 | \MSG{This is textit:} 16 | \textit{slanted \CURRNFSS} 17 | 18 | \MSG{This is textsl:} 19 | \textsl{slanted \CURRNFSS} 20 | 21 | \MSG{=========================} 22 | \MSG{When slanted = itdefault:} 23 | \def\itdefault{sl} 24 | \setmainfont{texgyreheros-regular.otf}[ItalicFont=texgyreheros-italic.otf] 25 | 26 | \MSG{This is normal:} 27 | Testing \CURRNFSS 28 | 29 | \MSG{This is textit:} 30 | \textit{slanted \CURRNFSS} 31 | 32 | \MSG{This is textsl:} 33 | \textsl{slanted \CURRNFSS} 34 | 35 | \MSG{=========================} 36 | \MSG{LATIN MODERN italic and slanted etc.} 37 | 38 | \def\itdefault{it} 39 | \setmainfont{lmroman}[ 40 | Extension = .otf, 41 | UprightFont = *10-regular, 42 | ItalicFont = *10-italic, 43 | SlantedFont = *slant10-regular, 44 | SmallCapsFont = *caps10-regular, 45 | ] 46 | 47 | \MSG{Normal} 48 | \CURRNFSS 49 | 50 | \MSG{Checking small caps:} 51 | \textsc{small caps \CURRNFSS} 52 | 53 | \MSG{This is textit:} 54 | \textit{slanted \CURRNFSS} 55 | 56 | \MSG{This is textsl:} 57 | \textsl{slanted \CURRNFSS} 58 | 59 | \end{document} -------------------------------------------------------------------------------- /testfiles/fontload-swash-1.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Default font: 4 | TU/EBGaramond-Regular.otf(0)/m/n: 5 | [EBGaramond-Regular.otf]:mode=node;script=latn;language=dflt;+tlig; 6 | Italic font: 7 | TU/EBGaramond-Regular.otf(0)/m/it: 8 | [EBGaramond-Italic.otf]:mode=node;script=latn;language=dflt;+tlig; 9 | Swash font: 10 | TU/EBGaramond-Regular.otf(0)/m/sw: 11 | [texgyrecursor-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 12 | Italic font: 13 | TU/EBGaramond-Regular.otf(0)/m/it: 14 | [EBGaramond-Italic.otf]:mode=node;script=latn;language=dflt;+tlig; 15 | Upright font: 16 | TU/EBGaramond-Regular.otf(0)/m/n: 17 | [EBGaramond-Regular.otf]:mode=node;script=latn;language=dflt;+tlig; 18 | Bold font: 19 | TU/EBGaramond-Regular.otf(0)/b/n: 20 | [EBGaramond-Bold.otf]:mode=node;script=latn;language=dflt;+tlig; 21 | Bold Italic font: 22 | TU/EBGaramond-Regular.otf(0)/b/it: 23 | [EBGaramond-BoldItalic.otf]:mode=node;script=latn;language=dflt;+tlig; 24 | Bold Swash font: 25 | TU/EBGaramond-Regular.otf(0)/b/sw: 26 | [texgyrecursor-bold.otf]:mode=node;script=latn;language=dflt;+tlig; 27 | Bold Italic font: 28 | TU/EBGaramond-Regular.otf(0)/b/it: 29 | [EBGaramond-BoldItalic.otf]:mode=node;script=latn;language=dflt;+tlig; 30 | Bold font: 31 | TU/EBGaramond-Regular.otf(0)/b/n: 32 | [EBGaramond-Bold.otf]:mode=node;script=latn;language=dflt;+tlig; 33 | *************** 34 | Compilation 1 of test file completed with exit status 0 35 | -------------------------------------------------------------------------------- /testfiles/fontload-swash-1.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \begin{document} 6 | 7 | \setmainfont{EBGaramond-Regular.otf}[ 8 | BoldFont = EBGaramond-Bold.otf , 9 | ItalicFont = EBGaramond-Italic.otf , 10 | BoldItalicFont = EBGaramond-BoldItalic.otf , 11 | SwashFont = texgyrecursor-regular.otf , 12 | BoldSwashFont = texgyrecursor-bold.otf , 13 | ] 14 | 15 | \def\alphabet{ABCDEFGHIJKLMNOPQRSTUVWYXZ\\ abcdefghijklmnopqrstuvwyxz\\ 0123456789} 16 | 17 | \MSG{Default font:} 18 | \alphabet 19 | \CURRNFSS 20 | 21 | \MSG{Italic font:} 22 | \itshape 23 | \alphabet 24 | \CURRNFSS 25 | 26 | \MSG{Swash font:} 27 | \swshape 28 | \alphabet 29 | \CURRNFSS 30 | 31 | \MSG{Italic font:} 32 | \itshape 33 | \alphabet 34 | \CURRNFSS 35 | 36 | \MSG{Upright font:} 37 | \upshape 38 | \alphabet 39 | \CURRNFSS 40 | 41 | \bfseries 42 | 43 | \MSG{Bold font:} 44 | \alphabet 45 | \CURRNFSS 46 | 47 | \MSG{Bold Italic font:} 48 | \itshape 49 | \alphabet 50 | \CURRNFSS 51 | 52 | \MSG{Bold Swash font:} 53 | \swshape 54 | \alphabet 55 | \CURRNFSS 56 | 57 | \MSG{Bold Italic font:} 58 | \itshape 59 | \alphabet 60 | \CURRNFSS 61 | 62 | \MSG{Bold font:} 63 | \upshape 64 | \alphabet 65 | \CURRNFSS 66 | 67 | 68 | \end{document} 69 | -------------------------------------------------------------------------------- /testfiles/fontload-swash-1.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Default font: 4 | TU/EBGaramond-Regular.otf(0)/m/n: 5 | "[EBGaramond-Regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 6 | Italic font: 7 | TU/EBGaramond-Regular.otf(0)/m/it: 8 | "[EBGaramond-Italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 9 | Swash font: 10 | TU/EBGaramond-Regular.otf(0)/m/sw: 11 | "[texgyrecursor-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 12 | Italic font: 13 | TU/EBGaramond-Regular.otf(0)/m/it: 14 | "[EBGaramond-Italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 15 | Upright font: 16 | TU/EBGaramond-Regular.otf(0)/m/n: 17 | "[EBGaramond-Regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 18 | Bold font: 19 | TU/EBGaramond-Regular.otf(0)/b/n: 20 | "[EBGaramond-Bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 21 | Bold Italic font: 22 | TU/EBGaramond-Regular.otf(0)/b/it: 23 | "[EBGaramond-BoldItalic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 24 | Bold Swash font: 25 | TU/EBGaramond-Regular.otf(0)/b/sw: 26 | "[texgyrecursor-bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 27 | Bold Italic font: 28 | TU/EBGaramond-Regular.otf(0)/b/it: 29 | "[EBGaramond-BoldItalic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 30 | Bold font: 31 | TU/EBGaramond-Regular.otf(0)/b/n: 32 | "[EBGaramond-Bold.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 33 | *************** 34 | Compilation 1 of test file completed with exit status 0 35 | -------------------------------------------------------------------------------- /testfiles/fontload-swash-2.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Default font: 4 | TU/EBGaramond-Regular.otf(0)/m/n: 5 | [EBGaramond-Regular.otf]:mode=node;script=latn;language=dflt;+tlig; 6 | Swash font: 7 | TU/EBGaramond-Regular.otf(0)/m/sw: 8 | [EBGaramond-Italic.otf]:mode=node;script=latn;language=dflt;+tlig;+swsh; 9 | Swash font small caps: 10 | TU/EBGaramond-Regular.otf(0)/m/scsw: 11 | [EBGaramond-Italic.otf]:mode=node;script=latn;language=dflt;+tlig;+swsh;+smcp; 12 | *************** 13 | Compilation 1 of test file completed with exit status 0 14 | -------------------------------------------------------------------------------- /testfiles/fontload-swash-2.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | \begin{document} 6 | 7 | \setmainfont{EBGaramond-Regular.otf}[ 8 | BoldFont = EBGaramond-Bold.otf , 9 | ItalicFont = EBGaramond-Italic.otf , 10 | BoldItalicFont = EBGaramond-BoldItalic.otf , 11 | SwashFont = EBGaramond-Italic.otf , 12 | BoldSwashFont = EBGaramond-BoldItalic.otf , 13 | SwashFeatures = {Style=Swash} , 14 | BoldSwashFeatures = {Style=Swash} , 15 | ] 16 | 17 | \def\alphabet{ABCDEFGHIJKLMNOPQRSTUVWYXZ\\ abcdefghijklmnopqrstuvwyxz\\ 0123456789} 18 | 19 | \MSG{Default font:} 20 | \alphabet 21 | \CURRNFSS 22 | 23 | \MSG{Swash font:} 24 | \swshape 25 | \alphabet 26 | \CURRNFSS 27 | 28 | \MSG{Swash font small caps:} 29 | \scshape 30 | \alphabet 31 | \CURRNFSS 32 | 33 | 34 | \end{document} 35 | -------------------------------------------------------------------------------- /testfiles/fontload-swash-2.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Default font: 4 | TU/EBGaramond-Regular.otf(0)/m/n: 5 | "[EBGaramond-Regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 6 | Swash font: 7 | TU/EBGaramond-Regular.otf(0)/m/sw: 8 | "[EBGaramond-Italic.otf]/OT:script=latn;language=dflt;+swsh;mapping=tex-text;" 9 | Swash font small caps: 10 | TU/EBGaramond-Regular.otf(0)/m/scsw: 11 | "[EBGaramond-Italic.otf]/OT:script=latn;language=dflt;+swsh;+smcp;mapping=tex-text;" 12 | *************** 13 | Compilation 1 of test file completed with exit status 0 14 | -------------------------------------------------------------------------------- /testfiles/fontload-trimspace.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrepagella-regular.otf(0)/m/n: 4 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 5 | TU/texgyrepagella-regular.otf(0)/m/n: 6 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/fontload-trimspace.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \setmainfont{texgyrepagella-regular.otf} 9 | hello \CURRNFSS 10 | 11 | \setmainfont{ texgyrepagella-regular.otf } 12 | hello \CURRNFSS 13 | 14 | \end{document} 15 | -------------------------------------------------------------------------------- /testfiles/fontload-trimspace.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrepagella-regular.otf(0)/m/n: 4 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 5 | TU/texgyrepagella-regular.otf(0)/m/n: 6 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/fontload-ttc-fontindex.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | [ASANA.TTC]:mode=node;script=latn;language=dflt; 4 | [ASANA.TTC](0):mode=node;script=latn;language=dflt; 5 | [ASANA.TTC](1):mode=node;script=latn;language=dflt; 6 | *************** 7 | Compilation 1 of test file completed with exit status 0 8 | -------------------------------------------------------------------------------- /testfiles/fontload-ttc-fontindex.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \ExplSyntaxOn 6 | \fontspec_font_if_exist:nF {ASANA.TTC} 7 | { \MSG{ ASANA.TTC~not~found.~Errors~will~follow.} } 8 | \ExplSyntaxOff 9 | 10 | \fontspec{ASANA.TTC} 11 | \TIMO\typeout{\fontname\font}\OMIT 12 | 13 | \fontspec{ASANA.TTC}[FontIndex=0] 14 | \TIMO\typeout{\fontname\font}\OMIT 15 | 16 | \fontspec{ASANA.TTC}[FontIndex=1] 17 | \TIMO\typeout{\fontname\font}\OMIT 18 | 19 | \end{document} 20 | -------------------------------------------------------------------------------- /testfiles/fontload-ttc-fontindex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | "[ASANA.TTC]/OT:script=latn;language=dflt;" 4 | "[ASANA.TTC:0]/OT:script=latn;language=dflt;" 5 | "[ASANA.TTC:1]/OT:script=latn;language=dflt;" 6 | *************** 7 | Compilation 1 of test file completed with exit status 0 8 | -------------------------------------------------------------------------------- /testfiles/fontload-ttc.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Sans: 2.75pt=9.26pt 4 | Mono: 5.0pt=5.0pt 5 | *************** 6 | Compilation 1 of test file completed with exit status 0 7 | -------------------------------------------------------------------------------- /testfiles/fontload-ttc.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \START 9 | 10 | \fontspec[FontIndex=0]{NotoSansCJK-Regular.ttc} 11 | \setbox0\hbox{i} 12 | \setbox2\hbox{m} 13 | \MSG{Sans: \the\wd0=\the\wd2} 14 | 15 | \fontspec[FontIndex=7]{NotoSansCJK-Regular.ttc} 16 | \setbox0\hbox{i} 17 | \setbox2\hbox{m} 18 | \MSG{Mono: \the\wd0=\the\wd2} 19 | 20 | \end{document} 21 | -------------------------------------------------------------------------------- /testfiles/fontload-ttc.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Sans: 2.75pt=9.26pt 4 | Mono: 5.0pt=5.0pt 5 | *************** 6 | Compilation 1 of test file completed with exit status 0 7 | -------------------------------------------------------------------------------- /testfiles/fontload-variable.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Default: 9.45pt 4 | Bold: 9.86pt 5 | Black: 10.16pt 6 | Black condensed: 8.98pt 7 | Extracondensed Bold: 8.07pt 8 | *************** 9 | Compilation 1 of test file completed with exit status 0 10 | -------------------------------------------------------------------------------- /testfiles/fontload-variable.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | 3 | \usepackage{fontspec} 4 | \usepackage{iftex} 5 | \ifluahbtex 6 | \defaultfontfeatures{Renderer=HarfBuzz} 7 | \fi 8 | 9 | \begin{document} 10 | 11 | \START 12 | 13 | \fontspec{NotoSerif-VF.ttf} 14 | \setbox0\hbox{m} 15 | \MSG{Default: \the\wd0} 16 | 17 | \fontspec[Weight=700]{NotoSerif-VF.ttf} 18 | \setbox0\hbox{m} 19 | \MSG{Bold: \the\wd0} 20 | 21 | \fontspec[Weight=900]{NotoSerif-VF.ttf} 22 | \setbox0\hbox{m} 23 | \MSG{Black: \the\wd0} 24 | 25 | \fontspec[Weight=900, Width=75]{NotoSerif-VF.ttf} 26 | \setbox0\hbox{m} 27 | \MSG{Black condensed: \the\wd0} 28 | 29 | \fontspec[Instance=ExtraCondensed Bold]{NotoSerif-VF.ttf} 30 | \setbox0\hbox{m} 31 | \MSG{Extracondensed Bold: \the\wd0} 32 | 33 | \end{document} 34 | -------------------------------------------------------------------------------- /testfiles/fontload-variable.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Default: 9.45pt 4 | Bold: 9.45pt 5 | Black: 9.45pt 6 | Black condensed: 9.45pt 7 | Extracondensed Bold: 9.45pt 8 | *************** 9 | Compilation 1 of test file completed with exit status 0 10 | -------------------------------------------------------------------------------- /testfiles/graphite-awami.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/AwamiNastaliq-Regular.ttf(0)/m/n: 4 | [AwamiNastaliq-Regular.ttf]:mode=harf;shaper=graphite2;script=arab;language=dflt;+tlig; 5 | *************** 6 | Compilation 1 of test file completed with exit status 0 7 | -------------------------------------------------------------------------------- /testfiles/graphite-awami.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | 3 | \usepackage{fontspec} 4 | \setmainfont{AwamiNastaliq-Regular.ttf}[Renderer=Graphite,Script=Arabic] 5 | \begin{document} 6 | وفا 7 | \CURRNFSS 8 | \end{document} 9 | -------------------------------------------------------------------------------- /testfiles/graphite-awami.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/AwamiNastaliq-Regular.ttf(0)/m/n: 4 | "[AwamiNastaliq-Regular.ttf]/GR:mapping=tex-text;" 5 | *************** 6 | Compilation 1 of test file completed with exit status 0 7 | -------------------------------------------------------------------------------- /testfiles/italicfeatures-concat.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrepagella(0)/m/n: 4 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 5 | TU/texgyrepagella(0)/m/sc: 6 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; 7 | TU/texgyrepagella(0)/m/it: 8 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig;+onum;color={AA0000}; 9 | TU/texgyrepagella(0)/m/scit: 10 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig;+onum;+smcp;color={AA0000}; 11 | *************** 12 | Compilation 1 of test file completed with exit status 0 13 | -------------------------------------------------------------------------------- /testfiles/italicfeatures-concat.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \setmainfont{texgyrepagella}[ 7 | Extension = .otf, 8 | UprightFont = *-regular , 9 | ItalicFont = *-italic , 10 | ItalicFeatures = {Numbers=OldStyle}, 11 | ItalicFeatures = {Color=AA0000}, 12 | ] 13 | 14 | \begin{document} 15 | 16 | \def\X{\CURRNFSS\textsc{\CURRNFSS}} 17 | 18 | \X\textit{\X} 19 | 20 | \end{document} 21 | -------------------------------------------------------------------------------- /testfiles/italicfeatures-concat.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrepagella(0)/m/n: 4 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 5 | TU/texgyrepagella(0)/m/sc: 6 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 10.0pt 7 | TU/texgyrepagella(0)/m/it: 8 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;+onum;mapping=tex-text;color=AA0000FF ;" at 10.0pt 9 | TU/texgyrepagella(0)/m/scit: 10 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;+onum;+smcp;mapping=tex-text;color=AA0000FF ;" at 10.0pt 11 | *************** 12 | Compilation 1 of test file completed with exit status 0 13 | -------------------------------------------------------------------------------- /testfiles/luatex-subs.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Completed box being shipped out [1] 4 | \hbox(0.0+0.0)x0.0, direction TLT 5 | .\TU/Vollkorn-Regular.otf(0)/m/n/10 0 6 | .\TU/Vollkorn-Regular.otf(0)/m/n/10 1 7 | .\TU/Vollkorn-Regular.otf(0)/m/n/10 2 8 | Completed box being shipped out [1] 9 | \hbox(0.0+0.0)x0.0, direction TLT 10 | .\TU/Vollkorn-Regular.otf(1)/m/n/10 0 11 | .\TU/Vollkorn-Regular.otf(1)/m/n/10 󰀳 12 | .\TU/Vollkorn-Regular.otf(1)/m/n/10 2 13 | *************** 14 | Compilation 1 of test file completed with exit status 0 15 | -------------------------------------------------------------------------------- /testfiles/luatex-subs.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \LUATEXONLY 6 | 7 | \directlua{ 8 | fonts.handlers.otf.addfeature { 9 | name = "oneb", 10 | type = "substitution", 11 | data = { 12 | ["1"] = "one.ss01", 13 | } 14 | } 15 | } 16 | 17 | \setmainfont{Vollkorn-Regular.otf} 18 | \SHIPOUT{012} 19 | 20 | \setmainfont{Vollkorn-Regular.otf}[RawFeature=+oneb] 21 | \SHIPOUT{012} 22 | 23 | \end{document} 24 | -------------------------------------------------------------------------------- /testfiles/luatex-subs.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | *** LuaTeX-only test *** 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/mergeshapes.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | shape: n 5 | TU/texgyrepagella-regular.otf(0)/m/n: 6 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 7 | shape: it 8 | TU/texgyrepagella-regular.otf(0)/m/it: 9 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig; 10 | shape: sc 11 | TU/texgyrepagella-regular.otf(0)/m/sc: 12 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; 13 | shape: scit 14 | TU/texgyrepagella-regular.otf(0)/m/scit: 15 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; 16 | shape: scit 17 | TU/texgyrepagella-regular.otf(0)/m/scit: 18 | [texgyrepagella-italic.otf]:mode=node;script=latn;language=dflt;+tlig;+smcp; 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/mergeshapes.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \setmainfont{texgyrepagella-regular.otf}[ 6 | ItalicFont = texgyrepagella-italic.otf , 7 | ] 8 | 9 | \TIMO\SEPARATOR 10 | 11 | \makeatletter 12 | \MSG{shape: \f@shape} 13 | \CURRNFSS 14 | 15 | \begingroup 16 | \itshape 17 | \MSG{shape: \f@shape} 18 | \CURRNFSS 19 | \endgroup 20 | 21 | \begingroup 22 | \scshape 23 | \MSG{shape: \f@shape} 24 | \CURRNFSS 25 | \endgroup 26 | 27 | \begingroup 28 | \itshape 29 | \scshape 30 | \MSG{shape: \f@shape} 31 | \CURRNFSS 32 | \endgroup 33 | 34 | \begingroup 35 | \scshape 36 | \itshape 37 | \MSG{shape: \f@shape} 38 | \CURRNFSS 39 | \endgroup 40 | 41 | 42 | \end{document} 43 | -------------------------------------------------------------------------------- /testfiles/mergeshapes.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | shape: n 5 | TU/texgyrepagella-regular.otf(0)/m/n: 6 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 7 | shape: it 8 | TU/texgyrepagella-regular.otf(0)/m/it: 9 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 10 | shape: sc 11 | TU/texgyrepagella-regular.otf(0)/m/sc: 12 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 10.0pt 13 | shape: scit 14 | TU/texgyrepagella-regular.otf(0)/m/scit: 15 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 10.0pt 16 | shape: scit 17 | TU/texgyrepagella-regular.otf(0)/m/scit: 18 | "[texgyrepagella-italic.otf]/OT:script=latn;language=dflt;+smcp;mapping=tex-text;" at 10.0pt 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/newfontfamily.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \TIMO\SEPARATOR 6 | \MSG{Not trying to extensively check logic here, just evaluation of the main functions.} 7 | 8 | \TIMO\SEPARATOR 9 | \MSG{New font family} 10 | \newfontfamily\1{texgyreheros-regular.otf} 11 | \1 12 | \CURRNFSS 13 | 14 | \TIMO\SEPARATOR 15 | \MSG{Set font family} 16 | \setfontfamily\1{texgyrepagella-regular.otf} 17 | \1 18 | \CURRNFSS 19 | 20 | \TIMO\SEPARATOR 21 | \MSG{Renew font family} 22 | \renewfontfamily\1{texgyretermes-regular.otf} 23 | \1 24 | \CURRNFSS 25 | 26 | \TIMO\SEPARATOR 27 | \MSG{Provide font family} 28 | \providefontfamily\1{texgyrecursor-regular.otf} 29 | \1 30 | \CURRNFSS 31 | 32 | 33 | \TIMO\SEPARATOR 34 | \MSG{New font face} 35 | \newfontface\2{texgyreheros-italic.otf} 36 | \2 37 | \CURRNFSS 38 | 39 | \TIMO\SEPARATOR 40 | \MSG{Set font face} 41 | \setfontface\2{texgyrepagella-italic.otf} 42 | \2 43 | \CURRNFSS 44 | 45 | \TIMO\SEPARATOR 46 | \MSG{Renew font face} 47 | \renewfontface\2{texgyretermes-italic.otf} 48 | \2 49 | \CURRNFSS 50 | 51 | \TIMO\SEPARATOR 52 | \MSG{Provide font face} 53 | \providefontface\2{texgyrecursor-italic.otf} 54 | \2 55 | \CURRNFSS 56 | 57 | \end{document} 58 | -------------------------------------------------------------------------------- /testfiles/path.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/PoetsenOne-Regular.ttf(0)/m/n: 4 | [./Fonts/PoetsenOne-Regular.ttf]:mode=node;script=latn;language=dflt; 5 | Font loaded from Path=.Fonts/ 6 | TU/PoetsenOne-Regular.ttf(0)/m/it: 7 | [./Fonts/Pacifico-Regular.ttf]:mode=node;script=latn;language=dflt; 8 | Italic font loaded from Path=.Fonts/ 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/path.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \fontspec{PoetsenOne-Regular.ttf}[ 9 | ItalicFont=Pacifico-Regular.ttf, 10 | Path=./Fonts/ 11 | ] 12 | 13 | \CURRNFSS 14 | \MSG{Font loaded from Path=.Fonts/} 15 | 16 | \itshape 17 | \CURRNFSS 18 | \MSG{Italic font loaded from Path=.Fonts/} 19 | 20 | \end{document} 21 | -------------------------------------------------------------------------------- /testfiles/path.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/PoetsenOne-Regular.ttf(0)/m/n: 4 | "[./Fonts/PoetsenOne-Regular.ttf]/OT:script=latn;language=dflt;" 5 | Font loaded from Path=.Fonts/ 6 | TU/PoetsenOne-Regular.ttf(0)/m/it: 7 | "[./Fonts/Pacifico-Regular.ttf]/OT:script=latn;language=dflt;" 8 | Italic font loaded from Path=.Fonts/ 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/polyglossia-add-script.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Completed box being shipped out [1] 4 | \hbox(0.0+0.0)x0.0, glue set - 1.0, direction TLT 5 | .\TU/cmunrm.otf(0)/m/n/10 a 6 | .\TU/cmunrm.otf(0)/m/n/10 b 7 | .\kern0.28 (font) 8 | .\TU/cmunrm.otf(0)/m/n/10 c 9 | .\glue(\spaceskip) 3.33 plus 1.665 minus 1.11 10 | .\TU/cmunrm.otf(1)/m/n/10 τ 11 | .\TU/cmunrm.otf(1)/m/n/10 έ 12 | .\TU/cmunrm.otf(1)/m/n/10 μ 13 | .\TU/cmunrm.otf(1)/m/n/10 ν 14 | .\TU/cmunrm.otf(1)/m/n/10 ω 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/polyglossia-add-script.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup} 2 | 3 | \ExplSyntaxOn 4 | \debug_off:n { deprecation } 5 | \debug_suspend: 6 | \ExplSyntaxOff 7 | 8 | \usepackage{polyglossia} 9 | 10 | \ExplSyntaxOn 11 | \debug_resume: 12 | \ExplSyntaxOff 13 | 14 | \setmainfont{cmunrm.otf} 15 | 16 | \begin{document} 17 | 18 | \SHIPOUT{abc \addfontfeature {Script=Greek} τέμνω} 19 | 20 | \end{document} 21 | -------------------------------------------------------------------------------- /testfiles/polyglossia-add-script.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Completed box being shipped out [1] 4 | \hbox(0.0+0.0)x0.0, glue set - 1.0 5 | .\TU/cmunrm.otf(0)/m/n/10 abc 6 | .\glue 3.33 plus 1.665 minus 1.11 7 | .\TU/cmunrm.otf(1)/m/n/10 τέμνω 8 | *************** 9 | Compilation 1 of test file completed with exit status 0 10 | -------------------------------------------------------------------------------- /testfiles/polyglossia-cyrl.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | PACKAGE polyglossia LOADED 4 | Completed box being shipped out [1] 5 | \hbox(0.0+0.0)x0.0, direction TLT 6 | .\TU/LinLibertine_R.otf(0)/m/n/10 П 7 | .\TU/LinLibertine_R.otf(0)/m/n/10 р 8 | .\TU/LinLibertine_R.otf(0)/m/n/10 и 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/polyglossia-cyrl.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \START 5 | \OMIT 6 | 7 | \ExplSyntaxOn 8 | \debug_off:n { deprecation } 9 | \debug_suspend: 10 | \ExplSyntaxOff 11 | 12 | \usepackage{polyglossia} 13 | \MSG{^^J^^J^^JPACKAGE polyglossia LOADED^^J^^J^^J} 14 | 15 | \setmainlanguage{russian} 16 | 17 | \ExplSyntaxOn 18 | \debug_resume: 19 | \ExplSyntaxOff 20 | 21 | \setmainfont{texgyreheros-regular.otf} 22 | \newfontfamily\cyrillicfont{LinLibertine_R.otf}[Script=Cyrillic] 23 | 24 | \begin{document} 25 | 26 | \SHIPOUT{При} 27 | 28 | \end{document} 29 | 30 | 31 | -------------------------------------------------------------------------------- /testfiles/polyglossia-cyrl.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | PACKAGE polyglossia LOADED 4 | Completed box being shipped out [1] 5 | \hbox(0.0+0.0)x0.0 6 | .\TU/LinLibertine_R.otf(0)/m/n/10 При 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/primitive-if-exist.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TRUE 4 | TRUE 5 | FALSE 6 | *************** 7 | Compilation 1 of test file completed with exit status 0 8 | -------------------------------------------------------------------------------- /testfiles/primitive-if-exist.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | \begin{fstest} 5 | \ExplSyntaxOn 6 | \__fontspec_primitive_font_if_exist:nTF {cmr10} 7 | {\TIMO\TRUE\OMIT} {\TIMO\FALSE\OMIT} 8 | \__fontspec_primitive_font_if_exist:nTF {[texgyrepagella-regular.otf]} 9 | {\TIMO\TRUE\OMIT} {\TIMO\FALSE\OMIT} 10 | \__fontspec_primitive_font_if_exist:nTF {[mystery-font.otf]} 11 | {\TIMO\TRUE\OMIT} {\TIMO\FALSE\OMIT} 12 | \ExplSyntaxOff 13 | \end{fstest} 14 | \end{document} 15 | -------------------------------------------------------------------------------- /testfiles/primitive-if-exist.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TRUE 4 | TRUE 5 | FALSE 6 | *************** 7 | Compilation 1 of test file completed with exit status 0 8 | -------------------------------------------------------------------------------- /testfiles/script-lang-chinese.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/FandolHei(0)/m/n: 4 | [FandolHei-Regular.otf]:mode=node;script=hani;language=ZHS;+tlig;family=rm; 5 | *************** 6 | Compilation 1 of test file completed with exit status 0 7 | -------------------------------------------------------------------------------- /testfiles/script-lang-chinese.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage[english]{babel} 5 | \babelfont[chinese]{rm}[ 6 | Extension=.otf, 7 | UprightFont=*-Regular, 8 | BoldFont=*-Bold 9 | ]{FandolHei} 10 | 11 | \begin{document} 12 | \foreignlanguage{chinese}{你好世界\CURRNFSS} 13 | \end{document} 14 | -------------------------------------------------------------------------------- /testfiles/script-lang-chinese.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/FandolHei(0)/m/n: 4 | "[FandolHei-Regular.otf]/OT:script=hani;language=ZHS;mapping=tex-text;" 5 | *************** 6 | Compilation 1 of test file completed with exit status 0 7 | -------------------------------------------------------------------------------- /testfiles/script-lang-feat-fallback.luatex.tlg: -------------------------------------------------------------------------------- 1 | TU/EBGaramond(0)/m/n: 2 | [EBGaramond-Regular.otf]:mode=node;script=latn;language=ENG;+tlig;+onum; 3 | TU/EBGaramond(0)/m/it: 4 | [EBGaramond-Italic.otf]:mode=node;script=latn;language=ENG;+tlig;+onum; 5 | TU/EBGaramond(0)/b/n: 6 | [EBGaramond-Bold.otf]:mode=node;script=latn;language=ENG;+tlig;+onum; 7 | TU/EBGaramond(0)/b/it: 8 | [EBGaramond-BoldItalic.otf]:mode=node;script=latn;language=ENG;+tlig;+onum; 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/script-lang-feat-fallback.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \MSG{EBGaramond doesn't have language=ENG but we pass it through anyway.} 7 | \MSG{Previously fontspec intercepted the feature request and didn't allow it.} 8 | 9 | \setmainfont 10 | [ 11 | Ligatures=TeX, 12 | Numbers=Lowercase, 13 | Extension=.otf, 14 | UprightFont=*-Regular, 15 | ItalicFont=*-Italic, 16 | BoldFont=*-Bold, 17 | BoldItalicFont=*-BoldItalic, 18 | Language=English, 19 | ]{EBGaramond} 20 | 21 | \begin{document} 22 | \CURRNFSS 23 | \emph{\CURRNFSS} 24 | \bfseries 25 | \CURRNFSS 26 | \emph{\CURRNFSS} 27 | \end{document} 28 | -------------------------------------------------------------------------------- /testfiles/script-lang-feat-fallback.tlg: -------------------------------------------------------------------------------- 1 | TU/EBGaramond(0)/m/n: 2 | "[EBGaramond-Regular.otf]/OT:script=latn;language=ENG;+onum;mapping=tex-text;" 3 | TU/EBGaramond(0)/m/it: 4 | "[EBGaramond-Italic.otf]/OT:script=latn;language=ENG;+onum;mapping=tex-text;" 5 | TU/EBGaramond(0)/b/n: 6 | "[EBGaramond-Bold.otf]/OT:script=latn;language=ENG;+onum;mapping=tex-text;" 7 | TU/EBGaramond(0)/b/it: 8 | "[EBGaramond-BoldItalic.otf]/OT:script=latn;language=ENG;+onum;mapping=tex-text;" 9 | *************** 10 | Compilation 1 of test file completed with exit status 0 11 | -------------------------------------------------------------------------------- /testfiles/script-lang-hebr.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | HEBR SELECTED (PASS) 4 | JII NOT SELECTED (PASS) 5 | HEBR SELECTED (PASS) 6 | JII SELECTED (PASS) 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/script-lang-hebr.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | 3 | \usepackage{fontspec} 4 | 5 | 6 | \begin{document} 7 | 8 | \fontspec[Script=Hebrew]{DavidCLM-Medium.otf} 9 | שם ומספר הקורס 10 | \ExplSyntaxOn 11 | \fontspec_if_current_script:nTF {hebr} { \MSG{HEBR~SELECTED~(PASS)} } { \MSG{HEBR~NOT~SELECTED~(FAIL)} } 12 | \fontspec_if_current_language:nTF {JII} { \MSG{JII~SELECTED~(FAIL)} } { \MSG{JII~NOT~SELECTED~(PASS)} } 13 | \ExplSyntaxOff 14 | 15 | \fontspec[Script=Hebrew,Language=Yiddish]{DavidCLM-Medium.otf} 16 | שם ומספר הקורס 17 | \ExplSyntaxOn 18 | \fontspec_if_current_script:nTF {hebr} { \MSG{HEBR~SELECTED~(PASS)} } { \MSG{HEBR~NOT~SELECTED~(FAIL)} } 19 | \fontspec_if_current_language:nTF {JII} { \MSG{JII~SELECTED~(PASS)} } { \MSG{JII~NOT~SELECTED~(FAIL)} } 20 | \ExplSyntaxOff 21 | 22 | \end{document} -------------------------------------------------------------------------------- /testfiles/script-lang-hebr.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | HEBR SELECTED (PASS) 4 | JII NOT SELECTED (PASS) 5 | HEBR SELECTED (PASS) 6 | JII SELECTED (PASS) 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/script-lang-trk.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | DEFAULT 4 | TU/STIXTwoText-Regular.otf(0)/m/n: 5 | [STIXTwoText-Regular.otf]:mode=node;script=latn;language=dflt;+tlig; 6 | SCRIPT DFLT 7 | TU/STIXTwoText-Regular.otf(1)/m/n: 8 | [STIXTwoText-Regular.otf]:mode=node;script=latn;language=dflt;+tlig; 9 | LANG TRK 10 | TU/STIXTwoText-Regular.otf(2)/m/n: 11 | [STIXTwoText-Regular.otf]:mode=node;script=latn;language=TRK;+tlig; 12 | *************** 13 | Compilation 1 of test file completed with exit status 0 14 | -------------------------------------------------------------------------------- /testfiles/script-lang-trk.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \MSG{DEFAULT} 9 | \setmainfont{STIXTwoText-Regular.otf} 10 | \CURRNFSS 11 | 12 | \MSG{SCRIPT DFLT} 13 | \setmainfont{STIXTwoText-Regular.otf}[Script=Latin] 14 | \CURRNFSS 15 | 16 | \MSG{LANG TRK} 17 | \setmainfont{STIXTwoText-Regular.otf}[Script=Latin,Language=Turkish] 18 | \CURRNFSS 19 | 20 | \end{document} 21 | -------------------------------------------------------------------------------- /testfiles/script-lang-trk.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | DEFAULT 4 | TU/STIXTwoText-Regular.otf(0)/m/n: 5 | "[STIXTwoText-Regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 6 | SCRIPT DFLT 7 | TU/STIXTwoText-Regular.otf(1)/m/n: 8 | "[STIXTwoText-Regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 9 | LANG TRK 10 | TU/STIXTwoText-Regular.otf(2)/m/n: 11 | "[STIXTwoText-Regular.otf]/OT:script=latn;language=TRK;mapping=tex-text;" 12 | *************** 13 | Compilation 1 of test file completed with exit status 0 14 | -------------------------------------------------------------------------------- /testfiles/script-lang.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | DEFAULT 4 | TU/texgyrepagella-regular.otf(0)/m/n: 5 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 6 | LANG DFLT 7 | TU/texgyrepagella-regular.otf(1)/m/n: 8 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=ROM;+tlig; 9 | LANG DFLT 10 | TU/texgyrepagella-regular.otf(2)/m/n: 11 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=ROM;+tlig; 12 | LANG DFLT 13 | TU/texgyrepagella-regular.otf(3)/m/n: 14 | [texgyrepagella-regular.otf]:mode=node;script=cyrl;language=ROM;+tlig; 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/script-lang.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \MSG{DEFAULT} 9 | \setmainfont{texgyrepagella-regular.otf} 10 | \CURRNFSS 11 | 12 | \MSG{LANG DFLT} 13 | \setmainfont{texgyrepagella-regular.otf}[Language=Romanian] 14 | \CURRNFSS 15 | 16 | \MSG{LANG DFLT} 17 | \setmainfont{texgyrepagella-regular.otf}[Script=Latin,Language=Romanian] 18 | \CURRNFSS 19 | 20 | \MSG{LANG DFLT} 21 | \setmainfont{texgyrepagella-regular.otf}[Script=Cyrillic,Language=Romanian] 22 | \CURRNFSS 23 | 24 | \end{document} 25 | -------------------------------------------------------------------------------- /testfiles/script-lang.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | DEFAULT 4 | TU/texgyrepagella-regular.otf(0)/m/n: 5 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 6 | LANG DFLT 7 | TU/texgyrepagella-regular.otf(1)/m/n: 8 | "[texgyrepagella-regular.otf]/OT:script=latn;language=ROM;mapping=tex-text;" at 10.0pt 9 | LANG DFLT 10 | TU/texgyrepagella-regular.otf(2)/m/n: 11 | "[texgyrepagella-regular.otf]/OT:script=latn;language=ROM;mapping=tex-text;" at 10.0pt 12 | LANG DFLT 13 | TU/texgyrepagella-regular.otf(3)/m/n: 14 | "[texgyrepagella-regular.otf]/OT:script=cyrl;language=ROM;mapping=tex-text;" at 10.0pt 15 | *************** 16 | Compilation 1 of test file completed with exit status 0 17 | -------------------------------------------------------------------------------- /testfiles/script-no-script.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | DEFAULT 4 | TU/FandolSong-Regular.otf(0)/m/n: 5 | [FandolSong-Regular.otf]:mode=node;script=latn;language=dflt;+tlig; 6 | SCRIPT DFLT 7 | TU/FandolSong-Regular.otf(1)/m/n: 8 | [FandolSong-Regular.otf]:mode=node;script=DFLT;language=dflt;+tlig; 9 | LANG DFLT 10 | TU/FandolSong-Regular.otf(2)/m/n: 11 | [FandolSong-Regular.otf]:mode=node;script=latn;language=dflt;+tlig; 12 | SCRIPT LANG DFLT 13 | TU/FandolSong-Regular.otf(3)/m/n: 14 | [FandolSong-Regular.otf]:mode=node;script=DFLT;language=dflt;+tlig; 15 | SCRIPT 16 | TU/FandolSong-Regular.otf(4)/m/n: 17 | [FandolSong-Regular.otf]:mode=node;script=latn;language=dflt;+tlig; 18 | SCRIPT CJK 19 | TU/FandolSong-Regular.otf(5)/m/n: 20 | [FandolSong-Regular.otf]:mode=node;script=hani;language=dflt;+tlig; 21 | *************** 22 | Compilation 1 of test file completed with exit status 0 23 | -------------------------------------------------------------------------------- /testfiles/script-no-script.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \START 7 | \TIMO 8 | 9 | \MSG{DEFAULT} 10 | \setmainfont{FandolSong-Regular.otf} 11 | \CURRNFSS 12 | 13 | \MSG{SCRIPT DFLT} 14 | \setmainfont{FandolSong-Regular.otf}[Script=Default] 15 | \CURRNFSS 16 | 17 | \MSG{LANG DFLT} 18 | \setmainfont{FandolSong-Regular.otf}[Language=Default] 19 | \CURRNFSS 20 | 21 | \MSG{SCRIPT LANG DFLT} 22 | \setmainfont{FandolSong-Regular.otf}[Script=Default,Language=Default] 23 | \CURRNFSS 24 | 25 | \MSG{SCRIPT} 26 | \setmainfont{FandolSong-Regular.otf}[Script=Latin] 27 | \CURRNFSS 28 | 29 | \MSG{SCRIPT CJK} 30 | \setmainfont{FandolSong-Regular.otf}[Script=CJK] 31 | \CURRNFSS 32 | 33 | \OMIT 34 | 35 | \begin{document} 36 | 37 | 38 | \end{document} 39 | -------------------------------------------------------------------------------- /testfiles/script-no-script.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | DEFAULT 4 | TU/FandolSong-Regular.otf(0)/m/n: 5 | "[FandolSong-Regular.otf]/OT:language=dflt;mapping=tex-text;" 6 | SCRIPT DFLT 7 | TU/FandolSong-Regular.otf(1)/m/n: 8 | "[FandolSong-Regular.otf]/OT:script=DFLT;language=dflt;mapping=tex-text;" 9 | LANG DFLT 10 | TU/FandolSong-Regular.otf(2)/m/n: 11 | "[FandolSong-Regular.otf]/OT:language=dflt;mapping=tex-text;" 12 | SCRIPT LANG DFLT 13 | TU/FandolSong-Regular.otf(3)/m/n: 14 | "[FandolSong-Regular.otf]/OT:script=DFLT;language=dflt;mapping=tex-text;" 15 | SCRIPT 16 | TU/FandolSong-Regular.otf(4)/m/n: 17 | "[FandolSong-Regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" 18 | SCRIPT CJK 19 | TU/FandolSong-Regular.otf(5)/m/n: 20 | "[FandolSong-Regular.otf]/OT:script=hani;language=dflt;mapping=tex-text;" 21 | *************** 22 | Compilation 1 of test file completed with exit status 0 23 | -------------------------------------------------------------------------------- /testfiles/script.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Literal defaults 4 | TU/texgyrepagella-regular.otf(0)/m/n: 5 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 6 | SCRIPT DFLT 7 | TU/texgyrepagella-regular.otf(1)/m/n: 8 | [texgyrepagella-regular.otf]:mode=node;script=DFLT;language=dflt;+tlig; 9 | LANG DFLT 10 | TU/texgyrepagella-regular.otf(2)/m/n: 11 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 12 | SCRIPT LANG DFLT 13 | TU/texgyrepagella-regular.otf(3)/m/n: 14 | [texgyrepagella-regular.otf]:mode=node;script=DFLT;language=dflt;+tlig; 15 | SCRIPT latn 16 | TU/texgyrepagella-regular.otf(4)/m/n: 17 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig; 18 | SCRIPT CJK 19 | TU/texgyrepagella-regular.otf(5)/m/n: 20 | [texgyrepagella-regular.otf]:mode=node;script=hani;language=dflt;+tlig; 21 | *************** 22 | Compilation 1 of test file completed with exit status 0 23 | -------------------------------------------------------------------------------- /testfiles/script.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \MSG{Literal defaults} 9 | \setmainfont{texgyrepagella-regular.otf} 10 | \CURRNFSS 11 | 12 | \MSG{SCRIPT DFLT} 13 | \setmainfont{texgyrepagella-regular.otf}[Script=Default] 14 | \CURRNFSS 15 | 16 | \MSG{LANG DFLT} 17 | \setmainfont{texgyrepagella-regular.otf}[Language=Default] 18 | \CURRNFSS 19 | 20 | \MSG{SCRIPT LANG DFLT} 21 | \setmainfont{texgyrepagella-regular.otf}[Script=Default,Language=Default] 22 | \CURRNFSS 23 | 24 | \MSG{SCRIPT latn} 25 | \setmainfont{texgyrepagella-regular.otf}[Script=Latin] 26 | \CURRNFSS 27 | 28 | \MSG{SCRIPT CJK} 29 | \setmainfont{texgyrepagella-regular.otf}[Script=CJK] 30 | \CURRNFSS 31 | 32 | \end{document} 33 | -------------------------------------------------------------------------------- /testfiles/script.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Literal defaults 4 | TU/texgyrepagella-regular.otf(0)/m/n: 5 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 6 | SCRIPT DFLT 7 | TU/texgyrepagella-regular.otf(1)/m/n: 8 | "[texgyrepagella-regular.otf]/OT:script=DFLT;language=dflt;mapping=tex-text;" at 10.0pt 9 | LANG DFLT 10 | TU/texgyrepagella-regular.otf(2)/m/n: 11 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 12 | SCRIPT LANG DFLT 13 | TU/texgyrepagella-regular.otf(3)/m/n: 14 | "[texgyrepagella-regular.otf]/OT:script=DFLT;language=dflt;mapping=tex-text;" at 10.0pt 15 | SCRIPT latn 16 | TU/texgyrepagella-regular.otf(4)/m/n: 17 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 18 | SCRIPT CJK 19 | TU/texgyrepagella-regular.otf(5)/m/n: 20 | "[texgyrepagella-regular.otf]/OT:script=hani;language=dflt;mapping=tex-text;" at 10.0pt 21 | *************** 22 | Compilation 1 of test file completed with exit status 0 23 | -------------------------------------------------------------------------------- /testfiles/small-caps-lang.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | SMALL CAPS (PASS) 4 | SMALL CAPS (PASS) 5 | SMALL CAPS (PASS) 6 | SMALL CAPS (PASS) 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/small-caps-lang.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | 3 | \usepackage{fontspec} 4 | 5 | \begin{document} 6 | 7 | \setmainfont{EBGaramond-Regular.otf} 8 | {abc \scshape abc} 9 | \ExplSyntaxOn 10 | \fontspec_if_small_caps:TF { \MSG{SMALL~CAPS~(PASS)} }{ \MSG{NO~SMALL~CAPS~(FAIL)} } 11 | \ExplSyntaxOff 12 | 13 | \SEPARATOR 14 | 15 | \setmainfont{EBGaramond-Regular.otf}[Script=CJK] % font does NOT have script=hani 16 | {abc \scshape abc} 17 | \ExplSyntaxOn 18 | \fontspec_if_small_caps:TF { \MSG{SMALL~CAPS~(PASS)} }{ \MSG{NO~SMALL~CAPS~(FAIL)} } 19 | \ExplSyntaxOff 20 | 21 | \SEPARATOR 22 | 23 | \setmainfont{EBGaramond-Regular.otf}[Language=English] % font does NOT have language=ENG 24 | {abc \scshape abc} 25 | \ExplSyntaxOn 26 | \fontspec_if_small_caps:TF { \MSG{SMALL~CAPS~(PASS)} }{ \MSG{NO~SMALL~CAPS~(FAIL)} } 27 | \ExplSyntaxOff 28 | 29 | \SEPARATOR 30 | 31 | \setmainfont{EBGaramond-Regular.otf}[Language=Default] % font does NOT have language=ENG 32 | {abc \scshape abc} 33 | \ExplSyntaxOn 34 | \fontspec_if_small_caps:TF { \MSG{SMALL~CAPS~(PASS)} }{ \MSG{NO~SMALL~CAPS~(FAIL)} } 35 | \ExplSyntaxOff 36 | 37 | \end{document} 38 | -------------------------------------------------------------------------------- /testfiles/small-caps-lang.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | SMALL CAPS (PASS) 4 | SMALL CAPS (PASS) 5 | SMALL CAPS (PASS) 6 | SMALL CAPS (PASS) 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/strong-fontface.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Define three levels of strong. 4 | "Light": 5 | TU/SourceCodePro(0)/m/n: 6 | [SourceCodePro-Light.otf]:mode=node;script=latn;language=dflt;+tlig; 7 | "Regular": 8 | TU/SourceCodePro(0)/b/n: 9 | [SourceCodePro-Regular.otf]:mode=node;script=latn;language=dflt;+tlig; 10 | "Black": 11 | TU/SourceCodePro(0)/k/n: 12 | [SourceCodePro-Black.otf]:mode=node;script=latn;language=dflt;+tlig; 13 | "Now what? (same again)": 14 | TU/SourceCodePro(0)/k/n: 15 | [SourceCodePro-Black.otf]:mode=node;script=latn;language=dflt;+tlig; 16 | *************** 17 | Compilation 1 of test file completed with exit status 0 18 | -------------------------------------------------------------------------------- /testfiles/strong-fontface.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \setmainfont{SourceCodePro}[ 4 | Extension = .otf , 5 | UprightFont = *-Light , 6 | BoldFont = *-Regular , 7 | FontFace = {k}{n}{*-Black} , 8 | ] 9 | \begin{document} 10 | 11 | \MSG{Define three levels of strong.} 12 | \strongfontdeclare{\bfseries,\fontseries{k}\selectfont} 13 | 14 | %light 15 | \MSG{"Light":} 16 | \CURRNFSS 17 | % 18 | \strong{regular 19 | \MSG{"Regular":} 20 | \CURRNFSS 21 | % 22 | \strong{black 23 | \MSG{"Black":} 24 | \CURRNFSS 25 | % 26 | \strong{not sure 27 | \MSG{"Now what? (same again)":} 28 | \CURRNFSS 29 | % 30 | }}} 31 | 32 | \end{document} 33 | -------------------------------------------------------------------------------- /testfiles/strong-fontface.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Define three levels of strong. 4 | "Light": 5 | TU/SourceCodePro(0)/m/n: 6 | "[SourceCodePro-Light.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 7 | "Regular": 8 | TU/SourceCodePro(0)/b/n: 9 | "[SourceCodePro-Regular.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 10 | "Black": 11 | TU/SourceCodePro(0)/k/n: 12 | "[SourceCodePro-Black.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 13 | "Now what? (same again)": 14 | TU/SourceCodePro(0)/k/n: 15 | "[SourceCodePro-Black.otf]/OT:script=latn;language=dflt;mapping=tex-text;" at 10.0pt 16 | *************** 17 | Compilation 1 of test file completed with exit status 0 18 | -------------------------------------------------------------------------------- /testfiles/support/Fonts/Pacifico-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/latex3/fontspec/b5e0f588cd288c3be5a8e53ac62634241e199dd5/testfiles/support/Fonts/Pacifico-Regular.ttf -------------------------------------------------------------------------------- /testfiles/support/Fonts/PoetsenOne-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/latex3/fontspec/b5e0f588cd288c3be5a8e53ac62634241e199dd5/testfiles/support/Fonts/PoetsenOne-Regular.ttf -------------------------------------------------------------------------------- /testfiles/support/luaotfload.conf: -------------------------------------------------------------------------------- 1 | 2 | [run] 3 | log-level = -1 4 | -------------------------------------------------------------------------------- /testfiles/support/regression-test.cfg: -------------------------------------------------------------------------------- 1 | 2 | % Allocate registers up to a constant value 3 | 4 | \RequirePackage{expl3} 5 | 6 | \ExplSyntaxOn 7 | \tl_new:N \l__fontspec_target_count_tl 8 | \tl_new:N \l__fontspec_current_count_tl 9 | \tl_set:Nn \l__fontspec_target_count_tl {500} 10 | \tl_set:Nx \l__fontspec_current_count_tl { \the\count10 } 11 | \int_compare:nTF { \l__fontspec_current_count_tl < \l__fontspec_target_count_tl } 12 | { 13 | \int_while_do:nn { \l__fontspec_current_count_tl < \l__fontspec_target_count_tl } 14 | { 15 | \newcount \l__fontspec_dummy_int 16 | \tl_set:Nx \l__fontspec_current_count_tl { \the\count10 } 17 | } 18 | } 19 | { 20 | \typeout{TOO~MANY~COUNTS;~EDIT~regression-test.cfg.} 21 | \ERROR 22 | } 23 | \ExplSyntaxOff 24 | -------------------------------------------------------------------------------- /testfiles/unicode-math.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | PACKAGE fontspec LOADED 4 | PACKAGE unicode-math LOADED 5 | Completed box being shipped out [1] 6 | \hbox(0.0+0.0)x0.0, direction TLT 7 | .\mathon 8 | .\TU/latinmodern-math.otf(1)/m/n/10 𝑦 9 | .\kern0.28 (italic) 10 | .\TU/latinmodern-math.otf(1)/m/n/10 𝛾 11 | .\kern0.53 (italic) 12 | .\TU/latinmodern-math.otf(1)/m/n/10 𝐱 13 | .\kern0.06 (italic) 14 | .\TU/latinmodern-math.otf(1)/m/n/10 𝜶 15 | .\mathoff 16 | *************** 17 | Compilation 1 of test file completed with exit status 0 18 | -------------------------------------------------------------------------------- /testfiles/unicode-math.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \START 5 | \OMIT 6 | 7 | \usepackage{fontspec} 8 | \MSG{^^J^^J^^JPACKAGE fontspec LOADED^^J^^J^^J} 9 | 10 | \usepackage{unicode-math} 11 | \MSG{^^J^^J^^JPACKAGE unicode-math LOADED^^J^^J^^J} 12 | 13 | \begin{document} 14 | $a$ 15 | 16 | \SHIPOUT{$y \gamma \symbf{x} \symbf{\alpha}$} 17 | 18 | \end{document} 19 | -------------------------------------------------------------------------------- /testfiles/unicode-math.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | PACKAGE fontspec LOADED 4 | PACKAGE unicode-math LOADED 5 | Completed box being shipped out [1] 6 | \hbox(0.0+0.0)x0.0 7 | .\mathon 8 | .\TU/latinmodern-math.otf(1)/m/n/10 glyph#1320 9 | .\kern0.28 10 | .\TU/latinmodern-math.otf(1)/m/n/10 glyph#4461 11 | .\kern0.53 12 | .\TU/latinmodern-math.otf(1)/m/n/10 glyph#1488 13 | .\kern0.06 14 | .\TU/latinmodern-math.otf(1)/m/n/10 glyph#4630 15 | .\mathoff 16 | *************** 17 | Compilation 1 of test file completed with exit status 0 18 | -------------------------------------------------------------------------------- /testfiles/user-alias-feature-option.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrepagella-regular.otf(0)/m/n: 4 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+lnum; 5 | TU/texgyrepagella-regular.otf(1)/m/n: 6 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+onum; 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/user-alias-feature-option.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \aliasfontfeature{Numbers}{123} 6 | \aliasfontfeatureoption{Numbers}{Lining}{UC} 7 | \aliasfontfeatureoption{Numbers}{OldStyle}{LC} 8 | 9 | \fontspec[123=UC]{texgyrepagella-regular.otf} 10 | Numbers: 12345 11 | \CURRNFSS 12 | 13 | \fontspec[123=LC]{texgyrepagella-regular.otf} 14 | Numbers: 12345 15 | \CURRNFSS 16 | 17 | \end{document} 18 | -------------------------------------------------------------------------------- /testfiles/user-alias-feature-option.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyrepagella-regular.otf(0)/m/n: 4 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+lnum;" at 10.0pt 5 | TU/texgyrepagella-regular.otf(1)/m/n: 6 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;" at 10.0pt 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/user-alias-feature.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes-regular.otf(0)/m/n: 4 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt; 5 | TU/texgyretermes-regular.otf(0)/m/it: 6 | [texgyretermes-italic.otf]:mode=node;script=latn;language=dflt;color={FF0000}; 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/user-alias-feature.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \aliasfontfeature{ItalicFeatures}{IF} 6 | \aliasfontfeature{ItalicFont}{II} 7 | 8 | \fontspec[ 9 | II = texgyretermes-italic.otf, 10 | IF = {Colour=FF0000}]{texgyretermes-regular.otf} 11 | 12 | Roman letters 13 | \CURRNFSS 14 | 15 | \itshape and red italics 16 | \CURRNFSS 17 | 18 | \end{document} 19 | -------------------------------------------------------------------------------- /testfiles/user-alias-feature.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes-regular.otf(0)/m/n: 4 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;" at 10.0pt 5 | TU/texgyretermes-regular.otf(0)/m/it: 6 | "[texgyretermes-italic.otf]/OT:script=latn;language=dflt;color=FF0000FF ;" at 10.0pt 7 | *************** 8 | Compilation 1 of test file completed with exit status 0 9 | -------------------------------------------------------------------------------- /testfiles/user-new-ot-feature.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes-regular.otf(0)/m/n: 4 | [texgyretermes-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+aalt; 5 | *************** 6 | Compilation 1 of test file completed with exit status 0 7 | -------------------------------------------------------------------------------- /testfiles/user-new-ot-feature.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \newopentypefeature{Style}{AllAlts}{+aalt} 6 | \setmainfont{texgyretermes-regular.otf}[Style=AllAlts] 7 | \CURRNFSS 8 | 9 | \end{document} 10 | -------------------------------------------------------------------------------- /testfiles/user-new-ot-feature.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | TU/texgyretermes-regular.otf(0)/m/n: 4 | "[texgyretermes-regular.otf]/OT:script=latn;language=dflt;+aalt;mapping=tex-text;" at 10.0pt 5 | *************** 6 | Compilation 1 of test file completed with exit status 0 7 | -------------------------------------------------------------------------------- /testfiles/user-nums-junicode.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | DEFAULT 5 | TU/Junicode.ttf(0)/m/n: 6 | [Junicode.ttf]:mode=node;script=latn;language=dflt;+tlig; 7 | TU/Junicode.ttf(1)/m/n: 8 | [Junicode.ttf]:mode=node;script=latn;language=dflt;+tlig;+onum; 9 | TU/Junicode.ttf(2)/m/n: 10 | [Junicode.ttf]:mode=node;script=latn;language=dflt;+tlig;+lnum; 11 | ============================================================ 12 | ONUM 13 | TU/Junicode.ttf(1)/m/n: 14 | [Junicode.ttf]:mode=node;script=latn;language=dflt;+tlig;+onum; 15 | TU/Junicode.ttf(3)/m/n: 16 | [Junicode.ttf]:mode=node;script=latn;language=dflt;+tlig;+onum; 17 | TU/Junicode.ttf(4)/m/n: 18 | [Junicode.ttf]:mode=node;script=latn;language=dflt;+tlig;+lnum; 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/user-nums-junicode.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \TIMO\SEPARATOR 6 | \MSG{DEFAULT} 7 | 8 | \setmainfont{Junicode.ttf} 9 | 10 | Roman letters 11 | \CURRNFSS 12 | 13 | \oldstylenums{123\CURRNFSS} 14 | 15 | \liningnums{123\CURRNFSS} 16 | 17 | 18 | 19 | \TIMO\SEPARATOR 20 | \MSG{ONUM} 21 | 22 | \setmainfont{Junicode.ttf}[Numbers=OldStyle] 23 | 24 | Roman letters 25 | \CURRNFSS 26 | 27 | \oldstylenums{123\CURRNFSS} 28 | 29 | \liningnums{123\CURRNFSS} 30 | 31 | 32 | 33 | 34 | \end{document} 35 | -------------------------------------------------------------------------------- /testfiles/user-nums-junicode.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | DEFAULT 5 | TU/Junicode.ttf(0)/m/n: 6 | "[Junicode.ttf]/OT:script=latn;language=dflt;mapping=tex-text;" 7 | TU/Junicode.ttf(1)/m/n: 8 | "[Junicode.ttf]/OT:script=latn;language=dflt;+onum;mapping=tex-text;" 9 | TU/Junicode.ttf(2)/m/n: 10 | "[Junicode.ttf]/OT:script=latn;language=dflt;+lnum;mapping=tex-text;" 11 | ============================================================ 12 | ONUM 13 | TU/Junicode.ttf(1)/m/n: 14 | "[Junicode.ttf]/OT:script=latn;language=dflt;+onum;mapping=tex-text;" 15 | TU/Junicode.ttf(3)/m/n: 16 | "[Junicode.ttf]/OT:script=latn;language=dflt;+onum;mapping=tex-text;" 17 | TU/Junicode.ttf(4)/m/n: 18 | "[Junicode.ttf]/OT:script=latn;language=dflt;+lnum;mapping=tex-text;" 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/user-nums-textcomp.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | PAGELLA LINING 5 | TU/texgyrepagella-regular.otf(0)/m/n: 6 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+lnum; 7 | TU/texgyrepagella-regular.otf(1)/m/n: 8 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+onum; 9 | TU/texgyrepagella-regular.otf(2)/m/n: 10 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+lnum; 11 | ============================================================ 12 | PAGELLA OSF 13 | TU/texgyrepagella-regular.otf(3)/m/n: 14 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+onum; 15 | TU/texgyrepagella-regular.otf(4)/m/n: 16 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+onum; 17 | TU/texgyrepagella-regular.otf(5)/m/n: 18 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+lnum; 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/user-nums-textcomp.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \usepackage{textcomp} 4 | \begin{document} 5 | 6 | \TIMO\SEPARATOR 7 | \MSG{PAGELLA LINING} 8 | \setmainfont{texgyrepagella-regular.otf}[Numbers=Lining] 9 | 10 | Roman letters 11 | \CURRNFSS 12 | 13 | \oldstylenums{123\CURRNFSS} 14 | 15 | \liningnums{123\CURRNFSS} 16 | 17 | 18 | \TIMO\SEPARATOR 19 | \MSG{PAGELLA OSF} 20 | \setmainfont{texgyrepagella-regular.otf}[Numbers=OldStyle] 21 | 22 | Roman letters 23 | \CURRNFSS 24 | 25 | \oldstylenums{123\CURRNFSS} 26 | 27 | \liningnums{123\CURRNFSS} 28 | 29 | \end{document} 30 | -------------------------------------------------------------------------------- /testfiles/user-nums-textcomp.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | PAGELLA LINING 5 | TU/texgyrepagella-regular.otf(0)/m/n: 6 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+lnum;mapping=tex-text;" at 10.0pt 7 | TU/texgyrepagella-regular.otf(1)/m/n: 8 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;mapping=tex-text;" at 10.0pt 9 | TU/texgyrepagella-regular.otf(2)/m/n: 10 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+lnum;mapping=tex-text;" at 10.0pt 11 | ============================================================ 12 | PAGELLA OSF 13 | TU/texgyrepagella-regular.otf(3)/m/n: 14 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;mapping=tex-text;" at 10.0pt 15 | TU/texgyrepagella-regular.otf(4)/m/n: 16 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;mapping=tex-text;" at 10.0pt 17 | TU/texgyrepagella-regular.otf(5)/m/n: 18 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+lnum;mapping=tex-text;" at 10.0pt 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/user-nums.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | PAGELLA LINING 5 | TU/texgyrepagella-regular.otf(0)/m/n: 6 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+lnum; 7 | TU/texgyrepagella-regular.otf(1)/m/n: 8 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+onum; 9 | TU/texgyrepagella-regular.otf(2)/m/n: 10 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+lnum; 11 | ============================================================ 12 | PAGELLA OSF 13 | TU/texgyrepagella-regular.otf(3)/m/n: 14 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+onum; 15 | TU/texgyrepagella-regular.otf(4)/m/n: 16 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+onum; 17 | TU/texgyrepagella-regular.otf(5)/m/n: 18 | [texgyrepagella-regular.otf]:mode=node;script=latn;language=dflt;+tlig;+lnum; 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/user-nums.lvt: -------------------------------------------------------------------------------- 1 | \input{fontspec-testsetup.tex} 2 | \usepackage{fontspec} 3 | \begin{document} 4 | 5 | \TIMO\SEPARATOR 6 | \MSG{PAGELLA LINING} 7 | \setmainfont{texgyrepagella-regular.otf}[Numbers=Lining] 8 | 9 | Roman letters 10 | \CURRNFSS 11 | 12 | \oldstylenums{123\CURRNFSS} 13 | 14 | \liningnums{123\CURRNFSS} 15 | 16 | 17 | \TIMO\SEPARATOR 18 | \MSG{PAGELLA OSF} 19 | \setmainfont{texgyrepagella-regular.otf}[Numbers=OldStyle] 20 | 21 | Roman letters 22 | \CURRNFSS 23 | 24 | \oldstylenums{123\CURRNFSS} 25 | 26 | \liningnums{123\CURRNFSS} 27 | 28 | 29 | \end{document} 30 | -------------------------------------------------------------------------------- /testfiles/user-nums.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | PAGELLA LINING 5 | TU/texgyrepagella-regular.otf(0)/m/n: 6 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+lnum;mapping=tex-text;" at 10.0pt 7 | TU/texgyrepagella-regular.otf(1)/m/n: 8 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;mapping=tex-text;" at 10.0pt 9 | TU/texgyrepagella-regular.otf(2)/m/n: 10 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+lnum;mapping=tex-text;" at 10.0pt 11 | ============================================================ 12 | PAGELLA OSF 13 | TU/texgyrepagella-regular.otf(3)/m/n: 14 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;mapping=tex-text;" at 10.0pt 15 | TU/texgyrepagella-regular.otf(4)/m/n: 16 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+onum;mapping=tex-text;" at 10.0pt 17 | TU/texgyrepagella-regular.otf(5)/m/n: 18 | "[texgyrepagella-regular.otf]/OT:script=latn;language=dflt;+lnum;mapping=tex-text;" at 10.0pt 19 | *************** 20 | Compilation 1 of test file completed with exit status 0 21 | -------------------------------------------------------------------------------- /testfiles/xetex-mapping-lig.luatex.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | *** XeTeX-only test *** 4 | *************** 5 | Compilation 1 of test file completed with exit status 0 6 | -------------------------------------------------------------------------------- /testfiles/xetex-mapping-lig.lvt: -------------------------------------------------------------------------------- 1 | 2 | \input{fontspec-testsetup.tex} 3 | 4 | \usepackage{fontspec} 5 | 6 | \begin{document} 7 | 8 | \XETEXONLY 9 | 10 | \def\x{ 11 | \CURRNFSS 12 | \SHIPOUT{`123--456'} 13 | } 14 | 15 | \MSG{AAT RENDERER} 16 | 17 | \fontspec{CODE2000.TTF}[Renderer=AAT,Ligatures=Rare] \x 18 | 19 | \fontspec{CODE2000.TTF}[Renderer=AAT,Mapping=tex-text] \x 20 | 21 | \fontspec{CODE2000.TTF}[Renderer=AAT,Mapping=thaidigits] \x 22 | 23 | \fontspec{CODE2000.TTF}[Renderer=AAT,Mapping=tex-text,Mapping=thaidigits] \x 24 | 25 | \fontspec{CODE2000.TTF}[Renderer=AAT,Mapping=thaidigits,Mapping=tex-text] \x 26 | 27 | \fontspec{CODE2000.TTF}[Renderer=AAT,Ligatures=TeX,Mapping=thaidigits] \x 28 | 29 | \fontspec{CODE2000.TTF}[Renderer=AAT,Mapping=thaidigits,Ligatures={TeX,Rare}] \x 30 | 31 | \MSG{OPENTYPE RENDERER} 32 | 33 | \fontspec{CODE2000.TTF}[Renderer=OpenType,Ligatures=Rare] \x 34 | 35 | \fontspec{CODE2000.TTF}[Renderer=OpenType,Mapping=tex-text] \x 36 | 37 | \fontspec{CODE2000.TTF}[Renderer=OpenType,Mapping=thaidigits] \x 38 | 39 | \fontspec{CODE2000.TTF}[Renderer=OpenType,Mapping=tex-text,Mapping=thaidigits] \x 40 | 41 | \fontspec{CODE2000.TTF}[Renderer=OpenType,Mapping=thaidigits,Mapping=tex-text] \x 42 | 43 | \fontspec{CODE2000.TTF}[Renderer=OpenType,Ligatures=TeX,Mapping=thaidigits] \x 44 | 45 | \fontspec{CODE2000.TTF}[Renderer=OpenType,Mapping=thaidigits,Ligatures={TeX,Rare}] \x 46 | 47 | \end{document} 48 | -------------------------------------------------------------------------------- /testsetup/install-customfonts.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ls -la /tmp/fontspec-test-fonts 4 | 5 | # Install custom fontspec fonts 6 | if [ -d "/tmp/fontspec-test-fonts/.git" ]; then 7 | cd /tmp/fontspec-test-fonts ; 8 | git pull --rebase ; 9 | cd -; 10 | else 11 | git clone https://github.com/wspr/fontspec-test-fonts.git /tmp/fontspec-test-fonts ; 12 | fi 13 | 14 | sh /tmp/fontspec-test-fonts/install.sh 15 | -------------------------------------------------------------------------------- /testsetup/texlive.profile: -------------------------------------------------------------------------------- 1 | selected_scheme scheme-infraonly 2 | TEXDIR /tmp/texlive 3 | TEXMFCONFIG ~/.texlive/texmf-config 4 | TEXMFHOME ~/texmf 5 | TEXMFLOCAL /tmp/texlive/texmf-local 6 | TEXMFSYSCONFIG /tmp/texlive/texmf-config 7 | TEXMFSYSVAR /tmp/texlive/texmf-var 8 | TEXMFVAR ~/.texlive/texmf-var 9 | option_doc 0 10 | option_src 0 11 | -------------------------------------------------------------------------------- /texmf/fonts/opentype/fontspec-test-fonts: -------------------------------------------------------------------------------- 1 | ../../../fontspec-test-fonts -------------------------------------------------------------------------------- /texmf/fonts/truetype/fontspec-test-fonts: -------------------------------------------------------------------------------- 1 | ../../../fontspec-test-fonts --------------------------------------------------------------------------------