texlive[73365] Master/texmf-dist: cascadiamono-otf (8jan25)

commits+karl at tug.org commits+karl at tug.org
Wed Jan 8 22:06:23 CET 2025


Revision: 73365
          https://tug.org/svn/texlive?view=revision&revision=73365
Author:   karl
Date:     2025-01-08 22:06:22 +0100 (Wed, 08 Jan 2025)
Log Message:
-----------
cascadiamono-otf (8jan25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/README.md
    trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.pdf
    trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.tex
    trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-Light.fontspec

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-ExtraLight.fontspec
    trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-SemiLight.fontspec

Modified: trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/README.md	2025-01-08 16:48:22 UTC (rev 73364)
+++ trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/README.md	2025-01-08 21:06:22 UTC (rev 73365)
@@ -17,7 +17,9 @@
 lualatex/xelatex and fontspec are necessary in order to use cascadiamono fonts.
 
 'Normal' version of the font is available with `\setmonofont{CascadiaCode}[options]`.
-'SemiLight' version of the font is available with `\setmonofont{CascadiaCode-Light}[options]`.
+'SemiLight' version of the font is available with `\setmonofont{CascadiaCode-SemiLight}[options]`.
+'Light' version of the font is available with `\setmonofont{CascadiaCode-Light}[options]`.
+'ExtraLight' version of the font is available with `\setmonofont{CascadiaCode-ExtraLight}[options]`.
 
 ## Installation
 
@@ -38,7 +40,8 @@
 Either version 1.3 or, at your option, any later version.
 
 ## Changes
-* First release version: 0.1 (experimental).
+* v0.2 (new alt weights)
+* v0.1 (experimental).
 
 ---
 Copyright 2024 C. Pierquet (with help from D. Flipo)

Modified: trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.tex	2025-01-08 16:48:22 UTC (rev 73364)
+++ trunk/Master/texmf-dist/doc/fonts/cascadiamono-otf/cascadiamono-otf-doc.tex	2025-01-08 21:06:22 UTC (rev 73365)
@@ -2,8 +2,9 @@
 % arara: lualatex: {shell: no, synctex: no, interaction: batchmode}
 
 \documentclass{article}
-\usepackage[margin=1in]{geometry}
+\usepackage[margin=0.75in]{geometry}
 \usepackage{fontspec}
+\setmonofont{CMU Typewriter Text}
 \usepackage{listings}
 \usepackage{xcolor}
 \setlength{\parindent}{0pt}
@@ -17,7 +18,7 @@
 
 \begin{document}
 
-\part*{cascadiamono-otf}
+\part*{cascadiamono-otf (v0.2)}
 
 \section{Usage}
 
@@ -27,34 +28,30 @@
 
 The idea is to propose \texttt{fontspec} config files to load correctly \texttt{CascadiaMono} features.
 
-\begin{lstlisting}[language=TeX,basicstyle=\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
+\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
 \usepackage{fontspec}
-\setmonofont{CascadiaMono}[options]       %version regular
-\setmonofont{CascadiaMono-Light}[options] %version semilight
+\setmonofont{CascadiaMono}[options]                %version regular
+\setmonofont{CascadiaMono-SemiLight}[options]      %version semilight
+\setmonofont{CascadiaMono-Light}[options]          %version light
+\setmonofont{CascadiaMono-ExtraLight}[options]     %version extralight
 \end{lstlisting}
 
 \section{The default settings}
 
-Following OpenType fonts are supported (it's based on CascadiaCode without the ligatures) :
+Following OpenType fonts are supported (it's based on \texttt{CascadiaCode} without the ligatures) :
 
-\begin{lstlisting}[language=TeX,basicstyle=\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
-CascadiaCode-Bold.otf
-CascadiaCode-BoldItalic.otf
-CascadiaCode-ExtraLight.otf
-CascadiaCode-ExtraLightItalic.otf
-CascadiaCode-Italic.otf
-CascadiaCode-Light.otf
-CascadiaCode-LightItalic.otf
-CascadiaCode-Regular.otf
-CascadiaCode-SemiBold.otf
-CascadiaCode-SemiBoldItalic.otf
-CascadiaCode-SemiLight.otf
-CascadiaCode-SemiLightItalic.otf
+\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
+CascadiaCode-Bold.otf                      CascadiaCode-BoldItalic.otf
+CascadiaCode-ExtraLight.otf                CascadiaCode-ExtraLightItalic.otf
+CascadiaCode-Italic.otf                    CascadiaCode-Light.otf
+CascadiaCode-LightItalic.otf               CascadiaCode-Regular.otf
+CascadiaCode-SemiBold.otf                  CascadiaCode-SemiBoldItalic.otf
+CascadiaCode-SemiLight.otf                 CascadiaCode-SemiLightItalic.otf
 \end{lstlisting}
 
 The \texttt{fontspec} config for the \textit{normal} version :
 
-\begin{lstlisting}[language=TeX,basicstyle=\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
+\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
 \defaultfontfeatures[CascadiaMono]
     {Extension=.otf,
     UprightFont=CascadiaCode-Regular,
@@ -61,24 +58,40 @@
     ItalicFont=CascadiaCode-Italic,
     BoldFont=CascadiaCode-Bold,
     BoldItalicFont=CascadiaCode-BoldItalic,
-    Contextuals=AlternateOff
-}
+    Contextuals=AlternateOff}
 \end{lstlisting}
 
-The \texttt{fontspec} config for the \textit{semilight} version :
+The \texttt{fontspec} config for the other versions are :
 
-\begin{lstlisting}[language=TeX,basicstyle=\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
+\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
 \defaultfontfeatures[CascadiaMono-Light]
     {Extension=.otf,
+    UprightFont=CascadiaCode-Light,
+    ItalicFont=CascadiaCode-LightItalic,
+    BoldFont=CascadiaCode-Regular,
+    BoldItalicFont=CascadiaCode-Italic,
+    Contextuals=AlternateOff}
+\end{lstlisting}
+
+\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
+\defaultfontfeatures[CascadiaMono-SemiLight]
+    {Extension=.otf,
     UprightFont=CascadiaCode-SemiLight,
     ItalicFont=CascadiaCode-SemiLightItalic,
     BoldFont=CascadiaCode-SemiBold,
     BoldItalicFont=CascadiaCode-SemiBoldItalic,
-    Contextuals=AlternateOff
-}
+    Contextuals=AlternateOff}
 \end{lstlisting}
 
-\pagebreak
+\begin{lstlisting}[language={[latex]TeX},basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
+\defaultfontfeatures[CascadiaMono-ExtraLight]
+    {Extension=.otf,
+    UprightFont=CascadiaCode-ExtraLight,
+    ItalicFont=CascadiaCode-ExtraLightItalic,
+    BoldFont=CascadiaCode-SemiLight,
+    BoldItalicFont=CascadiaCode-SemiLightItalic,
+    Contextuals=AlternateOff}
+\end{lstlisting}
 
 \section{Font Samples}
 
@@ -96,6 +109,18 @@
 
 \subsection{SemiLight version (SemiLight - SemiLightItalic - SemiBold - SemiBoldItalic)}
 
+\setmonofont{CascadiaMono-SemiLight}[Scale=MatchLowercase]
+
+\texttt{\demotext}\par\bigskip
+
+\texttt{\itshape\demotext}\par\bigskip
+
+\texttt{\bfseries\demotext}\par\bigskip
+
+\texttt{\bfseries\itshape\demotext}\par
+
+\subsection{Light version (Light - LightItalic - Regular - Italic)}
+
 \setmonofont{CascadiaMono-Light}[Scale=MatchLowercase]
 
 \texttt{\demotext}\par\bigskip
@@ -106,6 +131,18 @@
 
 \texttt{\bfseries\itshape\demotext}\par
 
+\subsection{ExtraLight version (ExtraLight - ExtraLightItalic - SemiLightItalic - SemiLightItalic)}
+
+\setmonofont{CascadiaMono-ExtraLight}[Scale=MatchLowercase]
+
+\texttt{\demotext}\par\bigskip
+
+\texttt{\itshape\demotext}\par\bigskip
+
+\texttt{\bfseries\demotext}\par\bigskip
+
+\texttt{\bfseries\itshape\demotext}\par
+
 \pagebreak
 
 \section{Algorithm samples}
@@ -114,7 +151,7 @@
 
 \setmonofont{CascadiaMono}[Scale=MatchLowercase]
 
-\begin{lstlisting}[language=Python,basicstyle=\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
+\begin{lstlisting}[language=python,basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\bfseries\color{magenta},tabsize=4,frame=single]
 def Fibonacci(n) :
   # Check if input is 0 then it will print incorrect input
   if n < 0 :
@@ -129,9 +166,26 @@
 
 \subsection{SemiLight version}
 
+\setmonofont{CascadiaMono-SemiLight}[Scale=MatchLowercase]
+
+\begin{lstlisting}[language=python,basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\bfseries\color{magenta},tabsize=4,frame=single]
+def Fibonacci(n) :
+  # Check if input is 0 then it will print incorrect input
+  if n < 0 :
+    print("Incorrect input")
+  elif n == 0 :
+    return 0
+  elif n == 1 or n == 2 :
+    return 1
+  else :
+    return Fibonacci(n-1) + Fibonacci(n-2)
+\end{lstlisting}
+
+\subsection{Light version}
+
 \setmonofont{CascadiaMono-Light}[Scale=MatchLowercase]
 
-\begin{lstlisting}[language=Python,basicstyle=\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\color{magenta},tabsize=4,frame=single]
+\begin{lstlisting}[language=python,basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\bfseries\color{magenta},tabsize=4,frame=single]
 def Fibonacci(n) :
   # Check if input is 0 then it will print incorrect input
   if n < 0 :
@@ -144,11 +198,31 @@
     return Fibonacci(n-1) + Fibonacci(n-2)
 \end{lstlisting}
 
-\vfill
+\subsection{ExtraLight version}
 
+\setmonofont{CascadiaMono-ExtraLight}[Scale=MatchLowercase]
+
+\begin{lstlisting}[language=python,basicstyle=\footnotesize\ttfamily,commentstyle=\itshape\color{gray},keywordstyle=\bfseries\color{magenta},tabsize=4,frame=single]
+def Fibonacci(n) :
+  # Check if input is 0 then it will print incorrect input
+  if n < 0 :
+    print("Incorrect input")
+  elif n == 0 :
+    return 0
+  elif n == 1 or n == 2 :
+    return 1
+  else :
+    return Fibonacci(n-1) + Fibonacci(n-2)
+\end{lstlisting}
+
+\pagebreak
+
 \section{History}
 
+\setmonofont{CMU Typewriter Text}[Scale=MatchLowercase]
+
 \begin{verbatim}
+v0.2 New weight options
 v0.1 Initial version
 \end{verbatim}
 

Added: trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-ExtraLight.fontspec
===================================================================
--- trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-ExtraLight.fontspec	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-ExtraLight.fontspec	2025-01-08 21:06:22 UTC (rev 73365)
@@ -0,0 +1,8 @@
+\defaultfontfeatures[CascadiaMono-ExtraLight]
+   {Extension=.otf,
+    UprightFont=CascadiaCode-ExtraLight,
+    ItalicFont=CascadiaCode-ExtraLightItalic,
+    BoldFont=CascadiaCode-SemiLight,
+    BoldItalicFont=CascadiaCode-SemiLightItalic,
+    Contextuals=AlternateOff
+}
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-Light.fontspec
===================================================================
--- trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-Light.fontspec	2025-01-08 16:48:22 UTC (rev 73364)
+++ trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-Light.fontspec	2025-01-08 21:06:22 UTC (rev 73365)
@@ -1,8 +1,8 @@
 \defaultfontfeatures[CascadiaMono-Light]
    {Extension=.otf,
-    UprightFont=CascadiaCode-SemiLight,
-    ItalicFont=CascadiaCode-SemiLightItalic,
-    BoldFont=CascadiaCode-SemiBold,
-    BoldItalicFont=CascadiaCode-SemiBoldItalic,
+    UprightFont=CascadiaCode-Light,
+    ItalicFont=CascadiaCode-LightItalic,
+    BoldFont=CascadiaCode-Regular,
+    BoldItalicFont=CascadiaCode-Italic,
     Contextuals=AlternateOff
 }
\ No newline at end of file

Added: trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-SemiLight.fontspec
===================================================================
--- trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-SemiLight.fontspec	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/fonts/cascadiamono-otf/CascadiaMono-SemiLight.fontspec	2025-01-08 21:06:22 UTC (rev 73365)
@@ -0,0 +1,8 @@
+\defaultfontfeatures[CascadiaMono-SemiLight]
+   {Extension=.otf,
+    UprightFont=CascadiaCode-SemiLight,
+    ItalicFont=CascadiaCode-SemiLightItalic,
+    BoldFont=CascadiaCode-SemiBold,
+    BoldItalicFont=CascadiaCode-SemiBoldItalic,
+    Contextuals=AlternateOff
+}
\ No newline at end of file



More information about the tex-live-commits mailing list.