summaryrefslogtreecommitdiff
path: root/fonts/newcomputermodern
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-12-06 03:01:00 +0000
committerNorbert Preining <norbert@preining.info>2023-12-06 03:01:00 +0000
commit517bc0ad712becd89c09bdc30e6b5cdb135fcd83 (patch)
tree37e759b73fd347325b77aa612514b73d82d86825 /fonts/newcomputermodern
parentf4d05c7d6b687c6730e84b104235e648ca4b3ecd (diff)
CTAN sync 202312060300
Diffstat (limited to 'fonts/newcomputermodern')
-rw-r--r--fonts/newcomputermodern/README31
-rw-r--r--fonts/newcomputermodern/doc/colored-diacritics.pdfbin0 -> 4972 bytes
-rw-r--r--fonts/newcomputermodern/doc/colored-diacritics.tex21
-rw-r--r--fonts/newcomputermodern/doc/newcm-doc.pdfbin183448 -> 254559 bytes
-rw-r--r--fonts/newcomputermodern/doc/newcm-doc.tex307
-rw-r--r--fonts/newcomputermodern/otf/NewCM08-Book.otfbin597564 -> 611348 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM08-BookItalic.otfbin618756 -> 628612 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM08-Italic.otfbin537592 -> 559488 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM08-Regular.otfbin517056 -> 532772 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM08Devanagari-Book.otfbin0 -> 336620 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM08Devanagari-Regular.otfbin0 -> 326428 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM10-Bold.otfbin495488 -> 504588 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM10-BoldItalic.otfbin448536 -> 454292 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM10-Book.otfbin591644 -> 600660 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM10-BookItalic.otfbin551252 -> 556028 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM10-Italic.otfbin465192 -> 470804 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM10-Regular.otfbin566756 -> 573392 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM10Devanagari-Bold.otfbin0 -> 324796 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM10Devanagari-Book.otfbin0 -> 322324 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCM10Devanagari-Regular.otfbin0 -> 344216 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMMath-Book.otfbin1140312 -> 1223200 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMMath-Regular.otfbin1006492 -> 1092680 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMMono10-Bold.otfbin297576 -> 310988 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMMono10-BoldOblique.otfbin672348 -> 683484 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMMono10-Book.otfbin421632 -> 437804 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMMono10-BookItalic.otfbin496564 -> 508168 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMMono10-Italic.otfbin399792 -> 416920 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMMono10-Regular.otfbin337268 -> 343900 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMSans08-Book.otfbin374692 -> 388488 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMSans08-BookOblique.otfbin391276 -> 405328 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMSans08-Oblique.otfbin360164 -> 373252 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMSans08-Regular.otfbin365824 -> 378788 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMSans10-Bold.otfbin319776 -> 334020 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMSans10-BoldOblique.otfbin308316 -> 322240 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMSans10-Book.otfbin368888 -> 382424 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMSans10-BookOblique.otfbin348608 -> 362768 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMSans10-Oblique.otfbin284580 -> 298472 bytes
-rw-r--r--fonts/newcomputermodern/otf/NewCMSans10-Regular.otfbin318572 -> 333232 bytes
-rw-r--r--fonts/newcomputermodern/source.txzbin12575116 -> 13814400 bytes
-rw-r--r--fonts/newcomputermodern/tex/newcomputermodern.sty2
40 files changed, 345 insertions, 16 deletions
diff --git a/fonts/newcomputermodern/README b/fonts/newcomputermodern/README
index 4fe2e78cd9..9d77365822 100644
--- a/fonts/newcomputermodern/README
+++ b/fonts/newcomputermodern/README
@@ -1,7 +1,7 @@
New Computer Modern Fonts
- (Package version 4.7, GustFLv1 or later)
+ (Package version 5.0, GustFLv1 or later)
Antonis Tsolomitis
Samos, Greece, 2019--2023
@@ -41,6 +41,10 @@ As of version 3.90 they are distributed in 10pt size in *all* families
and series and in 8pt size in Roman (Regular Italic Book BookItalic)
and Sans (Regular, Oblique, Book, BookOblique).
+As of version 5.0 the Devanagari script is supported for
+Languages Hindi (default), Sanskrit, Marathi and Nepali in
+Regular/Book 08/10pt and Bold 10t.
+
The Math fonts (Regular and Book) support fully all Unicode blocks
of Mathematics providing the widest possible Mathematical coverage.
@@ -49,6 +53,31 @@ which are distributed with microtype.
Latest additions/improvements:
+Version 5.0
+
+Support for Devanagari in Regular/Book 08/10pt and Bold 10t.
+
+Support of the Unicode Devanagari Block as variable letters and numbers
+in Math fonts with auto selection for the numbers in ss04.
+
+Addition in the Math fonts of a matching mathbb design keeping the
+AMS mathbb in ss03 if preferred.
+
+Two levels of scriptness in capitals. One as default with \mathcal and
+anotther in ss01. Lowercase script are also avalable with \mscrX where
+X is any of the latin lowercase letters. Their design match the ss01
+capitals. (Notice that this was already supported in version 4.7 but it
+was forgotten to be included in the documentation.)
+
+Complete support in all fonts for the diacritics Unicode block
+U0300--U036F with stacking support.
+
+A lot of improvements in BoldSans design.
+
+Completion of the Greek+Coptic block in all fonts (it was complete only in
+Regular/Book 10pt).
+
+
Version 4.7
Many improvements in Bold Sans 10.
diff --git a/fonts/newcomputermodern/doc/colored-diacritics.pdf b/fonts/newcomputermodern/doc/colored-diacritics.pdf
new file mode 100644
index 0000000000..884e2e8adb
--- /dev/null
+++ b/fonts/newcomputermodern/doc/colored-diacritics.pdf
Binary files differ
diff --git a/fonts/newcomputermodern/doc/colored-diacritics.tex b/fonts/newcomputermodern/doc/colored-diacritics.tex
new file mode 100644
index 0000000000..53524d357a
--- /dev/null
+++ b/fonts/newcomputermodern/doc/colored-diacritics.tex
@@ -0,0 +1,21 @@
+\documentclass{article}
+\usepackage[olddefault]{fontsetup}
+\usepackage{luacolor}
+\pagestyle{empty}
+\newfontfamily{\ncmtest}[Renderer=Harfbuzz]{NewCM10-Regular.otf}
+
+\definecolor{orange}{RGB}{255,191,0}
+
+\definecolor{colorone}{RGB}{91,0,250}
+\definecolor{colortwo}{RGB}{250,0,121}
+\definecolor{colorthree}{RGB}{0,204,250}
+\definecolor{colorfour}{RGB}{14,250,0}
+\definecolor{colorfive}{RGB}{255,150,0}
+\definecolor{colorgray}{gray}{0.8}
+
+\newcommand{\emptydiacritic}{\char"034F}
+
+\begin{document}
+\Huge
+{\ncmtest \color{colorgray}a\color{colorfour}̖\color{colortwo}̗\emptydiacritic\color{colorthree}́\color{colorone}̀\color{colorfive}̐}
+\end{document}
diff --git a/fonts/newcomputermodern/doc/newcm-doc.pdf b/fonts/newcomputermodern/doc/newcm-doc.pdf
index b3350ca5c9..e3c7a390d6 100644
--- a/fonts/newcomputermodern/doc/newcm-doc.pdf
+++ b/fonts/newcomputermodern/doc/newcm-doc.pdf
Binary files differ
diff --git a/fonts/newcomputermodern/doc/newcm-doc.tex b/fonts/newcomputermodern/doc/newcm-doc.tex
index 7819c9fab4..96412c1b49 100644
--- a/fonts/newcomputermodern/doc/newcm-doc.tex
+++ b/fonts/newcomputermodern/doc/newcm-doc.tex
@@ -1,13 +1,15 @@
\documentclass{article}
\synctex=1
\def\xstacked{x̧̖̗̘̙̜̝̞̟̠̣̤̥̦̩̪̫̬̭̮̯̰̱̲̹̺̻̼͇͈͉͍̀́̂̃̄̅̆̇̈̉̊̋̌̍̎̏̑̓̔̽̾͆͝͠͡}
+%\def\ttxstackedup{\sffamily x̀́̂̃̄̅̆̇̈̉̊̋̌̍̎̏̑̓̔̽̾͆͝͠͡}
+%\def\ttxstackeddown{\ttfamily x̧̖̗̘̙̜̝̞̟̠̣̤̥̦̩̪̫̬̭̮̯̰̱̲̹̺̻̼͇͈͉͍}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage[variant=polytonic]{greek}
\usepackage[hidelinks,pdfa]{hyperref}
%\usepackage{xgreek}
\usepackage[default,varnothing]{fontsetup}
-\usepackage{unicodefonttable,graphicx,wrapfig,xcolor}
+\usepackage{unicodefonttable,graphicx,wrapfig,xcolor,calc}
\newfontfamily\lmboldsans{lmsans10-bold.otf}
\newfontfamily\newcmaltendings[CharacterVariant=2]{NewCM10-Book.otf}
\newfontfamily\newcmaltk[CharacterVariant=1]{NewCM10-Book.otf}
@@ -19,14 +21,30 @@
\newfontfamily\ipafont[%Renderer = {Harfbuzz},
StylisticSet = {05},ItalicFont=NewCM10-BookItalic]{NewCM10-Book.otf}
%
-\newfontfamily\devanagaritext[%
- Script=Devanagari,%
- Scale=0.8,%
-% ExternalLocation=../../NewComputerModern-sfd/Devanagari/,
-% FakeBold=1.08,
+%%%%%%%%%%%%%%%%%%%%%%%%%%%% Devanagari text %%%%
+\newfontfamily\hinditext[%
+Script=Devanagari,%
+BoldFont=NewCM10Devanagari-Bold.otf,
% Renderer=Harfbuzz% Optionally for LuaTeX
-]{Shobhika-Regular.otf}
-%]{NewCM10Devanagari-Regular.otf}
+]{NewCM10Devanagari-Book.otf}
+\newfontfamily\marathitext[%
+Script=Devanagari,%
+Language=Marathi,
+ % Renderer=Harfbuzz% Optionally for LuaTeX
+]{NewCM10Devanagari-Book.otf}
+\newfontfamily\sanskrittext[%
+Script=Devanagari,%
+Language=Sanskrit,
+ % Renderer=Harfbuzz% Optionally for LuaTeX
+]{NewCM10Devanagari-Book.otf}
+\newfontfamily\nepalitext[%
+Script=Devanagari,%
+Language=Nepali,
+ % Renderer=Harfbuzz% Optionally for LuaTeX
+]{NewCM10Devanagari-Book.otf}
+\newcommand{\devanagaritext}{\marathitext}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
\definecolor{mygray}{gray}{.9}
\definecolor{mygrayone}{gray}{.9}
\definecolor{mygraytwo}{gray}{.8}
@@ -55,16 +73,29 @@ StylisticSet = {05},ItalicFont=NewCM10-BookItalic]{NewCM10-Book.otf}
\newfontfamily\graythreeb[Color=mygraythree,Opacity=0.7,Scale=12]{NewCM10-Book.otf}
\newfontfamily\grayfourb[Color=mygrayfour,Opacity=0.7,Scale=10]{NewCM10-Book.otf}
\newfontfamily\grayfiveb[Color=mygrayfive,Opacity=0.7,Scale=12]{NewCM10-Book.otf}
+\newfontfamily\devgray[Color=mygrayfive,Opacity=0.4,Scale=10,Script=Devanagari]{NewCM10Devanagari-Book.otf}
+\newfontfamily\devgraytwo[Color=mygrayone,Scale=10,Script=Devanagari,Language=Marathi]{NewCM10Devanagari-Book.otf}
\newcommand\leftgrquotes{\char"201C} %{\char"2018}
\newcommand\rightgrquotes{\char"201E} %{\char"2019}
\newcommand{\acro}{\relax}
%%% Start of metadata %%%
\newtheorem{theorem}{Θεώρημα}[section]
+\newtheorem{devtheorem}[theorem]{प्रमेय}
+
+%\DeclareSymbolFont{devletters}{\encodingdefault}{NewCMMath-Regular.otf(0)}{}{}
+%\ExplSyntaxOn
+%\int_step_inline:nnn { "0900 } { "097F }
+%{
+% \Umathcode #1 = "0 ~ \use:c{ symdevletters } ~ #1
+%}
+%\ExplSyntaxOff
+
+
\renewcommand{\arraystretch}{1.4}
-\title{The New Computer Modern FontFamily\\ version 4.7}
+\title{The New Computer Modern FontFamily\\ version 5.0}
\author{Antonis Tsolomitis}
%\address{Department of Mathematics\\ University of the Aegean\\ Karlovassi, 832\,00 Samos\\ Greece}
%\netaddress{atsol (at) aegean dot gr}
@@ -74,6 +105,8 @@ StylisticSet = {05},ItalicFont=NewCM10-BookItalic]{NewCM10-Book.otf}
\begin{document}
%
+\rput(-2,-3){\devgray ल}%
+\rput(10.2,-4){\devgraytwo ल\char"093F\char"0902}%
\rput(0,0){\grayone ζ}\rput(1,-0.5){\grayfour β}
\rput(0,-5){\grayone ἆ}\rput(1,-5){\graythree ἃ}\rput(2.5,-5){\grayone ἶ}%
\rput(3.5,-5){\graythree ῗ}\rput(5,-5){\grayone ᾦ}\rput(6,-5){\graythree ᾓ}
@@ -141,9 +174,18 @@ StylisticSet = {05},ItalicFont=NewCM10-BookItalic]{NewCM10-Book.otf}
\null\thispagestyle{empty}
+%\vfill
+%
+%\ttxstackedup \qquad
+%{\ttxstackeddown}
+%
+%\vfill
+%
\newpage
+%\end{document}
+
\maketitle
\tableofcontents
@@ -172,6 +214,7 @@ that Unicode has forgotten to encode).
\textit{What follows is a sequence of commands and results so as to show how to access all features
of the fonts. Character tables are also included}.
+
\section{How to load the fonts}
The simpler way to load the fonts is through the \verb|fontsetup| package. The command
@@ -233,10 +276,12 @@ U10307, U10310, U10312, U10314, U1031F and U1032F are
\subsection{Diacritics Stacking}
\marginpar{\begin{center}
-{\color{red}$\rightarrow$}\ \xstacked\ {\color{red}$\leftarrow$}
+{\color{red}$\rightarrow$}\ \xstacked\quad{\sffamily\xstacked}\quad{\ttfamily\xstacked}\ {\color{red}$\leftarrow$}
\end{center}}
-Diacritics stacking is supported at least for Regular, Book and Bold upright seriffed fonts.
-In the margin you can see an example of stacking on the letter ``x''. If you need to enter
+Diacritics---the full block U+0300 to U+036F---and diacritics stacking
+is supported.
+In the margin you can see an example of stacking on the letter ``x'' in Roman, Sans and Mono.
+If you need to enter
these accents you can use the \verb|\char| command or just copy-paste from the following line
(from this pdf file or the provided source \TeX\ file):
\begin{center}
@@ -255,6 +300,48 @@ these accents you can use the \verb|\char| command or just copy-paste from the f
Also notice that your text editor may not support stacking. The editor may show the
accents one after the other, but the pdf produced by xetex or luatex will have the accents stacked.
+\subsubsection{Coloring diacritics}
+
+If one wants to use color for diacritics, different from the color of the base character
+this does not work with Xe\LaTeX\ (the commands of the \verb|color| package
+break the stacking mechanism). It works though with Lua\LaTeX\ using the \verb|luacolor|
+package. However, there is a problem when the base glyph and the first diacritic above
+exist in the font as a precomposed character. For example, this is the case
+with aacute (á) (U+00E1). Such characters are treated as one by Lua and they can not
+be colorized with different colors. A work around is to place the empty character U+034F
+between ``a'' and acute (U+0301). So the following minimal example
+produces the result below:
+
+
+\begin{verbatim}
+\documentclass{article}
+\usepackage[olddefault]{fontsetup}
+\usepackage{luacolor}
+\pagestyle{empty}
+\newfontfamily{\ncmtest}[Renderer=Harfbuzz]{NewCM10-Regular.otf}
+\definecolor{orange}{RGB}{255,191,0}
+\definecolor{colorone}{RGB}{91,0,250}
+\definecolor{colortwo}{RGB}{250,0,121}
+\definecolor{colorthree}{RGB}{0,204,250}
+\definecolor{colorfour}{RGB}{14,250,0}
+\definecolor{colorfive}{RGB}{255,150,0}
+\definecolor{colorgray}{gray}{0.8}
+\newcommand{\emptydiacritic}{\char"034F}
+\begin{document}
+\Huge
+{\ncmtest \color{colorgray}a\color{colorfour}̖\color{colortwo}̗%
+\emptydiacritic\color{colorthree}́ \color{colorone}̀ \color{colorfive}̐ }
+\end{document}
+\end{verbatim}
+
+\vspace{-5.5cm}
+
+
+\null \hfill\includegraphics[scale=2]{colored-diacritics.pdf}
+
+
+\vspace{2cm}
+
\section{Greek}
@@ -348,7 +435,8 @@ So when enabling cv04 one can define the commands
\noindent for the rare case one needs quotes inside quotes. The \verb|fontsetup| package
does this automatically for Greek if the \verb|xgreek| package has been loaded \textit{before}
-the \verb|fontsetup| package. Otherwise, for non-Greek documents with small passages of Greek,
+the \verb|fontsetup| package or when the language is set to Greek by, say, the Babel package.
+Otherwise, for non-Greek documents with small passages of Greek,
the author may enable \verb|cv04| by creating a custom command such as
\verb|\newcommand\propergreek[CharacterVariant=4]{NewCM10-Book.otf}|
@@ -514,11 +602,145 @@ A few letters from Coptic and Epact numbers follow:
\section{Cherokee}
Both Unicode blocks
U13A0--13FF and UAB70--UABBF for Cherokee are supported. A few letters are:
-\begin{center}
+%\begin{center}
ᎣᎤᎹᏊᏐ ꭳꭴꭷꮂꮔꮿ
+%\end{center}
+
+
+
+\section{Devanagari}
+
+Devanagari script is supported for the serifed font in Regular (10pt/8pt), Book (10pt/8pt),
+and Bold (10pt). The fonts support Hindi (as the default), Sanskrit, Marathi and Nepali Languages.
+The optional arguments for the \verb|fontspec| font-selection mechanism
+must include
+
+\noindent \verb|Script=Devanagari, Language=XXXX| where \verb|XXXX|
+must be replaced with one of \verb|Hindi|, \verb|Sanskrit|, \verb|Marathi|, \verb|Nepali|.
+If the \verb|Language| parameter is not set then the default is \verb|Hindi|.
+For Lua\LaTeX\ the parameter \verb|Renderer=Harfbuzz| must also be included.
+
+So if say Marathi is needed as the default font document then one can use the following:
+\begin{verbatim}
+\usepackage{fontspec}
+\setmainfont[Script=Devanagari, Language=Marathi,%
+Renderer=Harfbuzz]{NewCM10Devanagari-Book.otf}
+\end{verbatim}
+
+
+The Devanagari fonts were developed with the help of {\devanagaritext निरंजन} (Niranjan)
+whose name appears in the copyright section of the fonts and I also thank him for
+providing the samples below.
+
+
+\noindent A Sanskrit sample from {\sanskrittext बृहदारण्यकोपनिषद्} (bṛhadāraṇyakopaniṣad) follows:
+
+
+\begin{center}
+\fbox{\begin{minipage}{9cm}
+{\hinditext
+ॐ पूर्णमदः पूर्णमिदं, पूर्णात्पूर्णमुदच्यते।\\
+पूर्णस्य पूर्णमादाय पूर्णमेवावशिष्यते॥
+}
+
+\medskip
+
+That\footnote{the outer world} is complete;\\
+this\footnote{the inner world} too is complete.\\
+From one complete comes the other. Taking out\\
+one complete from the other too results in a complete.
+\end{minipage}}
\end{center}
+\noindent Next is a beautiful part of a poem in Marathi
+by {\marathitext तुकाराम} (Tukaram) and its translation:
+
+\medskip
+
+\hspace*{-3cm}\begin{tabular}{l|l}
+{\begin{minipage}{\widthof{\marathitext त्यांसि म्हणे जो आपुलें॥ १ ॥}}
+{\marathitext
+%\noindent\begin{verse}
+जें कां रंजलें गांजलें।\\
+त्यांसि म्हणे जो आपुलें॥ १ ॥\\
+तो चि साधु ओळखावा।\\
+देव तेथें चि जाणावा॥
+%\end{verse}
+}
+\end{minipage}}
+ &
+\begin{minipage}{12cm}
+ %\begin{verse}
+ Only the one who treats the downtrodden people equally is a sage\footnote{\ ``The wise'' of course, not the plant.}.\\
+ One may sense the essence of god there.\\
+ %\end{verse}
+ \end{minipage}
+\end{tabular}
+
+
+\bigskip
+
+Devanagari Unicode letters (range U0900--U097F) are also available as variables (letters) and
+numbers in the Regular and Book Math fonts. They are available as usually in three weights
+in the Math fonts so that the color is balanced when in script size (eg in exponents or indices).
+For this to work a version of \verb|fontsetup| package greater or equal to 1.8 with options
+\verb|default| or \verb|olddefault| loaded is needed. This is because Devanagari letters are not
+Math variables in Unicode standard and hence not supported currently as such by the
+unicode-math package. To show this possibility next is a theorem in Hindi (mixing with Greek):
+
+\medskip
+
+%प्रमेय (Πυθαγόρας - पिथागोरास)‘’
+%\setmathfont[StylisticSet=4]{NewCMMath-Regular.otf}
+\setmathfont[StylisticSet=4]{NewCMMath-Book.otf}
+{\hinditext
+\textbf{प्रमेय}\,(\textrm{Πυθαγόρας} (पिथागोरास)) अगर समकोण त्रिभुज के कर्ण की लंबाई को ‘अ’ और
+अन्य दो भुजाओं की लंबाई को ‘क’ और ‘ख’ कहते हैं, तो भुजाओं की लम्बाई के वर्गों की
+जोड़, कर्ण के वर्ग जितनी होती है, अर्थात्
+ $अ^२=क^२+ख^२$।
+}
+%\setmathfont{NewCMMath-Regular.otf}
+\setmathfont{NewCMMath-Book.otf}
+
+
+\bigskip
+
+However, if only Devanagari numbers are needed with the source using arabic numerals
+then one can use the Stylistic Set 04 of the Math font.
+So the command
+
+%\noindent\verb|\setmathfont[StylisticSet=4]{NewCMMath-Regular.otf}|
+\noindent\verb|\setmathfont[StylisticSet=4]{NewCMMath-Regular.otf}|
+with source:
+\begin{verbatim}
+$$\sum_{n=0}^\infty \frac1{n!}x^n=1+x+\frac{1}{2!}x^2
+ +\frac1{3!}x^3+\frac1{4!}x^4+\ldots=e^x.$$
+$$9!=1\cdot2\cdot3\cdot4\cdot5\cdot6\cdot7\cdot8\cdot9.$$
+$$2^{2^2}$$
+\end{verbatim}
+will have the following effect:
+
+
+%\setmathfont[StylisticSet=4]{NewCMMath-Regular.otf}
+\setmathfont[StylisticSet=4]{NewCMMath-Book.otf}
+
+$$\sum_{n=0}^\infty \frac1{n!}x^n=1+x+\frac{1}{2!}x^2+\frac1{3!}x^3+\frac1{4!}x^4+\ldots=e^x.$$
+$$9!=1\cdot2\cdot3\cdot4\cdot5\cdot6\cdot7\cdot8\cdot9.$$
+$$2^{2^2}$$
+
+\noindent which when the math font is reset to use Arabic numbers with
+
+%\noindent\verb|\setmathfont{NewCMMath-Regular.otf}| it gives:
+\noindent\verb|\setmathfont{NewCMMath-Book.otf}| it gives:
+
+%\setmathfont{NewCMMath-Regular.otf}
+\setmathfont{NewCMMath-Book.otf}
+$$\sum_{n=0}^\infty \frac1{n!}x^n=1+x+\frac{1}{2!}x^2+\frac1{3!}x^3+\frac1{4!}x^4+\ldots=e^x.$$
+$$9!=1\cdot2\cdot3\cdot4\cdot5\cdot6\cdot7\cdot8\cdot9.$$
+$$2^{2^2}$$
+
+
\section{Medieval Latin and Uncial Greek}
The family includes new shapes for medieval and uncial Greek.
The \verb|fontsetup| package provides \verb|\textuncial{<text>}| and
@@ -724,7 +946,64 @@ Zoom or print and compare with \texttt{lat\-in\-modern-math} font:
\end{center}
+\subsection{Math Script}
+
+Calligraphic letters are accessed as usual with \verb|\mathcal| producing
+$$\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$
+However, mathematicians often need a second level of ``scriptness''. The fonts
+provide an alternative calligraphic, a script design at StylisticSet 1. For this to work
+one has to re-set the math font using
+
+\noindent\verb|\setmathfont[StylisticSet=1]{NewCMMath-Book.otf}|
+
+(or the Regular version). So the following code
+\begin{verbatim}
+$$\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$
+\setmathfont[StylisticSet=1]{NewCMMath-Book.otf}
+$$\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$
+$$
+\mscra\mscrb\mscrc\mscrd\mscre\mscrf\mscrg\mscrh\mscri\mscrj
+\mscrk\mscrl\mscrm\mscrn\mscro\mscrp\mscrq\mscrr\mscrs\mscrt
+\mscru\mscrv\mscrw\mscrx\mscry\mscrz
+$$
+\setmathfont{NewCMMath-Book.otf}
+$$\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$
+\end{verbatim}
+produces
+$$\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$\setmathfont[StylisticSet=1]{NewCMMath-Book.otf}$$\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$
+$$
+\mscra\mscrb\mscrc\mscrd\mscre\mscrf\mscrg\mscrh\mscri\mscrj\mscrk\mscrl\mscrm\mscrn\mscro\mscrp\mscrq\mscrr\mscrs\mscrt\mscru\mscrv\mscrw\mscrx\mscry\mscrz
+$$
+\setmathfont{NewCMMath-Book.otf}$$\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$
+
+
+\subsection{Blackboard Bold}
+The Math fonts in the past used to have the \textsc{ams} blackboard
+bold letters, which were accessed with
+the command \verb|\mathbb|. These designs were not matching in style
+computer modern. Starting from version 5.0 of the fonts, they now contain a
+the full Unicode list of blackboard bold in cm-matching design.
+These are:
+$$\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$
+$$\mathbb{abcdefghijklmnopqrstuvwxyz}$$
+$$\mathbb{0123456789\ \pi\gamma\Gamma\Pi\Sigma\mitBbbD\mitBbbd\mitBbbe\mitBbbi\mitBbbj}$$
+
+The old shapes, the ones of \textsc{ams}, are also available for backwards
+combatibility. To access them one needs to load the math font enabling the
+\verb|ss03| stylistic set using for example
+
+\noindent\verb|\setmathfont[StylisticSet=3]{NewCMMath-Book.otf}|
+Then the above blackboard bold design changes to
+\setmathfont[StylisticSet=3]{NewCMMath-Book.otf}
+$$\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$$
+$$\mathbb{abcdefghijklmnopqrstuvwxyz}$$
+$$\mathbb{0123456789\ \pi\gamma\Gamma\Pi\Sigma\mitBbbD\mitBbbd\mitBbbe\mitBbbi\mitBbbj}$$
+
+\setmathfont{NewCMMath-Book.otf}
+
+If using \verb|fontsetup| then you can choose the \textsc{ams} blackboard bold
+with the option \verb|amsbb|.
\subsection{Upright and extensible integrals}
The Math fonts (both Regular and Book weights) include upright integrals
diff --git a/fonts/newcomputermodern/otf/NewCM08-Book.otf b/fonts/newcomputermodern/otf/NewCM08-Book.otf
index 7da723e7a0..313f06d1d5 100644
--- a/fonts/newcomputermodern/otf/NewCM08-Book.otf
+++ b/fonts/newcomputermodern/otf/NewCM08-Book.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM08-BookItalic.otf b/fonts/newcomputermodern/otf/NewCM08-BookItalic.otf
index 7c8ad39922..9e4a15c7d2 100644
--- a/fonts/newcomputermodern/otf/NewCM08-BookItalic.otf
+++ b/fonts/newcomputermodern/otf/NewCM08-BookItalic.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM08-Italic.otf b/fonts/newcomputermodern/otf/NewCM08-Italic.otf
index d7813b837a..09f65f123d 100644
--- a/fonts/newcomputermodern/otf/NewCM08-Italic.otf
+++ b/fonts/newcomputermodern/otf/NewCM08-Italic.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM08-Regular.otf b/fonts/newcomputermodern/otf/NewCM08-Regular.otf
index 73021c4b51..cc4bb8b719 100644
--- a/fonts/newcomputermodern/otf/NewCM08-Regular.otf
+++ b/fonts/newcomputermodern/otf/NewCM08-Regular.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM08Devanagari-Book.otf b/fonts/newcomputermodern/otf/NewCM08Devanagari-Book.otf
new file mode 100644
index 0000000000..b02200f784
--- /dev/null
+++ b/fonts/newcomputermodern/otf/NewCM08Devanagari-Book.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM08Devanagari-Regular.otf b/fonts/newcomputermodern/otf/NewCM08Devanagari-Regular.otf
new file mode 100644
index 0000000000..78c7b8e1ea
--- /dev/null
+++ b/fonts/newcomputermodern/otf/NewCM08Devanagari-Regular.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM10-Bold.otf b/fonts/newcomputermodern/otf/NewCM10-Bold.otf
index 96527b7b56..cfd2859459 100644
--- a/fonts/newcomputermodern/otf/NewCM10-Bold.otf
+++ b/fonts/newcomputermodern/otf/NewCM10-Bold.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM10-BoldItalic.otf b/fonts/newcomputermodern/otf/NewCM10-BoldItalic.otf
index ad0cb23481..ae87120fb7 100644
--- a/fonts/newcomputermodern/otf/NewCM10-BoldItalic.otf
+++ b/fonts/newcomputermodern/otf/NewCM10-BoldItalic.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM10-Book.otf b/fonts/newcomputermodern/otf/NewCM10-Book.otf
index f2fdb90316..8dc9d53cbe 100644
--- a/fonts/newcomputermodern/otf/NewCM10-Book.otf
+++ b/fonts/newcomputermodern/otf/NewCM10-Book.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM10-BookItalic.otf b/fonts/newcomputermodern/otf/NewCM10-BookItalic.otf
index 03dd9d9e2b..d6ca61ce2f 100644
--- a/fonts/newcomputermodern/otf/NewCM10-BookItalic.otf
+++ b/fonts/newcomputermodern/otf/NewCM10-BookItalic.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM10-Italic.otf b/fonts/newcomputermodern/otf/NewCM10-Italic.otf
index 492e788f58..3706d147c2 100644
--- a/fonts/newcomputermodern/otf/NewCM10-Italic.otf
+++ b/fonts/newcomputermodern/otf/NewCM10-Italic.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM10-Regular.otf b/fonts/newcomputermodern/otf/NewCM10-Regular.otf
index abe6f1c8e0..a2a6f9a97b 100644
--- a/fonts/newcomputermodern/otf/NewCM10-Regular.otf
+++ b/fonts/newcomputermodern/otf/NewCM10-Regular.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM10Devanagari-Bold.otf b/fonts/newcomputermodern/otf/NewCM10Devanagari-Bold.otf
new file mode 100644
index 0000000000..6987e9619d
--- /dev/null
+++ b/fonts/newcomputermodern/otf/NewCM10Devanagari-Bold.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM10Devanagari-Book.otf b/fonts/newcomputermodern/otf/NewCM10Devanagari-Book.otf
new file mode 100644
index 0000000000..be1cf51a30
--- /dev/null
+++ b/fonts/newcomputermodern/otf/NewCM10Devanagari-Book.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCM10Devanagari-Regular.otf b/fonts/newcomputermodern/otf/NewCM10Devanagari-Regular.otf
new file mode 100644
index 0000000000..f185c316f0
--- /dev/null
+++ b/fonts/newcomputermodern/otf/NewCM10Devanagari-Regular.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMMath-Book.otf b/fonts/newcomputermodern/otf/NewCMMath-Book.otf
index ded1f81c91..5fdcf9c6ec 100644
--- a/fonts/newcomputermodern/otf/NewCMMath-Book.otf
+++ b/fonts/newcomputermodern/otf/NewCMMath-Book.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMMath-Regular.otf b/fonts/newcomputermodern/otf/NewCMMath-Regular.otf
index 9da2a19191..50317e3a1b 100644
--- a/fonts/newcomputermodern/otf/NewCMMath-Regular.otf
+++ b/fonts/newcomputermodern/otf/NewCMMath-Regular.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMMono10-Bold.otf b/fonts/newcomputermodern/otf/NewCMMono10-Bold.otf
index 9296483b0a..52d186f26c 100644
--- a/fonts/newcomputermodern/otf/NewCMMono10-Bold.otf
+++ b/fonts/newcomputermodern/otf/NewCMMono10-Bold.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMMono10-BoldOblique.otf b/fonts/newcomputermodern/otf/NewCMMono10-BoldOblique.otf
index 4853585216..926fe9d81c 100644
--- a/fonts/newcomputermodern/otf/NewCMMono10-BoldOblique.otf
+++ b/fonts/newcomputermodern/otf/NewCMMono10-BoldOblique.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMMono10-Book.otf b/fonts/newcomputermodern/otf/NewCMMono10-Book.otf
index 628e453893..809e79fd50 100644
--- a/fonts/newcomputermodern/otf/NewCMMono10-Book.otf
+++ b/fonts/newcomputermodern/otf/NewCMMono10-Book.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMMono10-BookItalic.otf b/fonts/newcomputermodern/otf/NewCMMono10-BookItalic.otf
index f62301201b..3daf4b2e3f 100644
--- a/fonts/newcomputermodern/otf/NewCMMono10-BookItalic.otf
+++ b/fonts/newcomputermodern/otf/NewCMMono10-BookItalic.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMMono10-Italic.otf b/fonts/newcomputermodern/otf/NewCMMono10-Italic.otf
index 15e436cc54..0ea097d190 100644
--- a/fonts/newcomputermodern/otf/NewCMMono10-Italic.otf
+++ b/fonts/newcomputermodern/otf/NewCMMono10-Italic.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMMono10-Regular.otf b/fonts/newcomputermodern/otf/NewCMMono10-Regular.otf
index 4a8f6482ba..98a69ec4ff 100644
--- a/fonts/newcomputermodern/otf/NewCMMono10-Regular.otf
+++ b/fonts/newcomputermodern/otf/NewCMMono10-Regular.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMSans08-Book.otf b/fonts/newcomputermodern/otf/NewCMSans08-Book.otf
index df282b150b..f5b0d20168 100644
--- a/fonts/newcomputermodern/otf/NewCMSans08-Book.otf
+++ b/fonts/newcomputermodern/otf/NewCMSans08-Book.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMSans08-BookOblique.otf b/fonts/newcomputermodern/otf/NewCMSans08-BookOblique.otf
index e19bd3d4cc..b6e1fcc91b 100644
--- a/fonts/newcomputermodern/otf/NewCMSans08-BookOblique.otf
+++ b/fonts/newcomputermodern/otf/NewCMSans08-BookOblique.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMSans08-Oblique.otf b/fonts/newcomputermodern/otf/NewCMSans08-Oblique.otf
index 3186fab8b5..69a1f8f1fb 100644
--- a/fonts/newcomputermodern/otf/NewCMSans08-Oblique.otf
+++ b/fonts/newcomputermodern/otf/NewCMSans08-Oblique.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMSans08-Regular.otf b/fonts/newcomputermodern/otf/NewCMSans08-Regular.otf
index d3a54860b6..bd6314c5a6 100644
--- a/fonts/newcomputermodern/otf/NewCMSans08-Regular.otf
+++ b/fonts/newcomputermodern/otf/NewCMSans08-Regular.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMSans10-Bold.otf b/fonts/newcomputermodern/otf/NewCMSans10-Bold.otf
index b7fe69201c..2af90d2ef9 100644
--- a/fonts/newcomputermodern/otf/NewCMSans10-Bold.otf
+++ b/fonts/newcomputermodern/otf/NewCMSans10-Bold.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMSans10-BoldOblique.otf b/fonts/newcomputermodern/otf/NewCMSans10-BoldOblique.otf
index 5a05d00b6e..ce41d72a28 100644
--- a/fonts/newcomputermodern/otf/NewCMSans10-BoldOblique.otf
+++ b/fonts/newcomputermodern/otf/NewCMSans10-BoldOblique.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMSans10-Book.otf b/fonts/newcomputermodern/otf/NewCMSans10-Book.otf
index 547e3c704f..a44c6086cc 100644
--- a/fonts/newcomputermodern/otf/NewCMSans10-Book.otf
+++ b/fonts/newcomputermodern/otf/NewCMSans10-Book.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMSans10-BookOblique.otf b/fonts/newcomputermodern/otf/NewCMSans10-BookOblique.otf
index 95c0be992f..44a2c63897 100644
--- a/fonts/newcomputermodern/otf/NewCMSans10-BookOblique.otf
+++ b/fonts/newcomputermodern/otf/NewCMSans10-BookOblique.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMSans10-Oblique.otf b/fonts/newcomputermodern/otf/NewCMSans10-Oblique.otf
index f2f760f5da..acb58b0709 100644
--- a/fonts/newcomputermodern/otf/NewCMSans10-Oblique.otf
+++ b/fonts/newcomputermodern/otf/NewCMSans10-Oblique.otf
Binary files differ
diff --git a/fonts/newcomputermodern/otf/NewCMSans10-Regular.otf b/fonts/newcomputermodern/otf/NewCMSans10-Regular.otf
index 707ed3f2e1..b45a9c4f6a 100644
--- a/fonts/newcomputermodern/otf/NewCMSans10-Regular.otf
+++ b/fonts/newcomputermodern/otf/NewCMSans10-Regular.otf
Binary files differ
diff --git a/fonts/newcomputermodern/source.txz b/fonts/newcomputermodern/source.txz
index 0b4d3e18ba..55aafa4c87 100644
--- a/fonts/newcomputermodern/source.txz
+++ b/fonts/newcomputermodern/source.txz
Binary files differ
diff --git a/fonts/newcomputermodern/tex/newcomputermodern.sty b/fonts/newcomputermodern/tex/newcomputermodern.sty
index 5d65bb67c3..5154a84a62 100644
--- a/fonts/newcomputermodern/tex/newcomputermodern.sty
+++ b/fonts/newcomputermodern/tex/newcomputermodern.sty
@@ -1,5 +1,5 @@
%\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{newcomputermodern}[v4.7 NewCM fonts by Antonis Tsolomitis]
+\ProvidesPackage{newcomputermodern}[v5.0 NewCM fonts by Antonis Tsolomitis]
\typeout{Loading NewCM fonts by Antonis Tsolomitis}
\newif\if@olddefault