# Tag Info

6

With a current tex system you can run on a command line albatross 0x0950 and albatross 0x09E7 This will give you a list of fonts that support your characters. I found e.g. FreeSerif which contains both, and two Noto fonts which contained one char each: \documentclass{article} \usepackage{polyglossia} \setmainfont{FreeSerif}[Script=Bengali] \newfontfamily\...

6

You would do this with an extensive list of FontFace= options, ideally in a .fontspec or .sty file. I don’t have that specific font to test, so I downloaded this version of Noto Serif into a subdirectory named fonts. Here is a sample: \documentclass{article} \usepackage{fontspec} \usepackage{parskip} \usepackage[paperwidth=10cm]{geometry} \pagestyle{empty}...

4

The class defines the chapter title and the header in the wrong way. It misuses \chaptername to include the number. But as \chaptername is redefined by the language support packages the number is lost again But you should be aware that the class is not a generic class for all languages. It explicitly supports only english, chinese and italian. You can add ...

4

Why shouldn't old font commands such as \rm or \it or \bf used? Because they follow the original LaTeX setup and reset all font features. So if you do \it\bf you just get boldface and not italic. The command \DeclareOldFontCommand should only be used for compatibility with older documents. If you look in the LaTeX kernel, you'll see that \bfseries is defined ...

2

My setup is different than yours but you can probably adapt it. My version of texlive-fontconfig.conf has the following contents <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <dir>/opt/texlive/2021/texmf-dist/fonts/opentype</dir> <dir>/opt/texlive/2021/texmf-dist/fonts/...

2

\documentclass{article} \usepackage{fontspec} \setmainfont{texgyretermes-regular.otf} \newfontfamily\cjkfont{FandolSong-Regular.otf} \begin{document} {\cjkfont 部機都冇咗嘞} \end{document} That runs with lualatex or xelatex on ubuntu but the fourth and fifth characters are not in the font so you get But if you have a font that works for those character just ...

2

As you are using a class you need to use its class command. Also for some reason, \fontspec doesn't work there. But you can define a new font family. \documentclass[12pts, a4paper, twocolumn, columnsep= 4 mm]{article} \usepackage{fontspec, polyglossia,color} \usepackage{ucharclasses} \setmainfont{Calibri} \newfontfamily\devafont{Nirmala UI}[Script=Devanagari]...

2

Very basic example. fontspec is very powerful. MWE \documentclass{article} \usepackage{xcolor} \usepackage{fontspec} \setmainfont{Noto Serif} \setsansfont{Noto Sans} \setmonofont{Noto Sans Mono} \newfontfamily{\fcyc}{cyklop} \newfontfamily{\falg}{AlgolRevived}[Scale=1.5,Color=red] \newfontfamily{\fsong}{FandolSong} \begin{document} \Large This is the ...

1

Use the options BoldFeatures={ Ligatures={...}}, and so on. \documentclass{article} \usepackage{fontspec} \usepackage{lipsum} \defaultfontfeatures[LinLibertine]{ Extension = {.otf}, UprightFont = {*_R}, UprightFeatures = { Ligatures = {Common, Rare, Historic, TeX}}, BoldFont = {*_RB}, BoldFeatures = { Ligatures = {Common, ...

1

A little addendum to the answwer by @lambda05 that is quite good. Be careful that the \defaultfontfeatures{RawFeature={+axis={wght=100}}} appears to be absolutely needed (at least with the lualatex, fontspec, luaotfload combination available in Apr 2021). Otherwise LuaLaTeX errors out with an error: (cff): Type2 Charstring Parser: subroutine called but no ...

Only top voted, non community-wiki answers of a minimum length are eligible