% !TEX program = lualatex

\documentclass{article}
\usepackage{fontspec}
\usepackage[a4paper,margin=3cm]{geometry}
\setlength{\parindent}{0pt}
\pagestyle{empty}

\newcommand{\gradeblock}[1]{%
  {\large {\bfseries Grade}~#1}\hfill
  {\rmfamily\footnotesize optical sizes:\enspace
    \fontsize{6}{7}\selectfont Hamburg\enspace
    \fontsize{10}{11}\selectfont Hamburg\enspace
    \fontsize{17.28}{19}\selectfont Hamburg}\par
  \smallskip
  \rmfamily The quick brown fox jumps over the lazy dog: \textbf{bold},
  \textit{italic}, \textsl{slanted}, \textbf{\textit{bold italic}},
  \textsc{Small Caps}. Accents: Věra Dvořák, Grüße, déjà, ¡Olé!\ ¿señor?, cœur,
  naïve, façade, Ångström.\par
  {\small Symbols: £ \$ § ¶ © ® ™ ° † ‡ • · ± × ÷ ¬ µ ‖ … x² y³ 1ª 2º;\enspace
    “curly” ‘quotes’, en–dash, em—dash;\newline
    ligatures office waffle affix final flag.}\hfill
  {\small\sffamily Sans: regular, \textbf{bold}, \textit{oblique}.\quad
    \ttfamily Typewriter: mono \textit{italic} 0O1lI.}\par
  \bigskip
}

\begin{document}

% Default grade (G19) for the title
\setmainfont{Computer Modern Graded Serif}
\setsansfont{Computer Modern Graded Sans}
\setmonofont{Computer Modern Graded Typewriter}

{\centering
  {\sffamily\bfseries\large Computer Modern Graded\par} \smallskip
  {\sffamily\footnotesize
   A grade \& feature sample — same design and metrics, the METAFONT \texttt{blacker} axis just adds ink.\par
   This here is with “Computer Modern Graded Serif” at default grade C (19); A-G below…\par}}
\bigskip

% 0, 10, 19, 32, 44, 57, 72

\setmainfont{Computer Modern Graded G0 Serif}
\setsansfont{Computer Modern Graded G0 Sans}
\setmonofont{Computer Modern Graded G0 Typewriter}
\gradeblock{\textbf{A} \small(0)}

\setmainfont{Computer Modern Graded G10 Serif}
\setsansfont{Computer Modern Graded G10 Sans}
\setmonofont{Computer Modern Graded G10 Typewriter}
\gradeblock{\textbf{B} \small(10)}

% explicitly G19 here...
\setmainfont{Computer Modern Graded G19 Serif}
\setsansfont{Computer Modern Graded G19 Sans}
\setmonofont{Computer Modern Graded G19 Typewriter}
\gradeblock{\textbf{C} \small(19, default)}

\setmainfont{Computer Modern Graded G32 Serif}
\setsansfont{Computer Modern Graded G32 Sans}
\setmonofont{Computer Modern Graded G32 Typewriter}
\gradeblock{\textbf{D} \small(32)}

\setmainfont{Computer Modern Graded G44 Serif}
\setsansfont{Computer Modern Graded G44 Sans}
\setmonofont{Computer Modern Graded G44 Typewriter}
\gradeblock{\textbf{E} \small(44)}

\setmainfont{Computer Modern Graded G57 Serif}
\setsansfont{Computer Modern Graded G57 Sans}
\setmonofont{Computer Modern Graded G57 Typewriter}
\gradeblock{\textbf{F} \small(57)}

\setmainfont{Computer Modern Graded G72 Serif}
\setsansfont{Computer Modern Graded G72 Sans}
\setmonofont{Computer Modern Graded G72 Typewriter}
\gradeblock{\textbf{G} \small(72)}

\end{document}
