actual problem:
How to make a second font the same "actual" size of the first one.
\documentclass[a4paper, 12pt]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\newcommand*{\afont}{\fontsize{14}{48}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\texta}{\afont}
\newcommand*{\bfont}{\fontsize{21}{48}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\textb}{\bfont}
\newcommand*{\cfont}{\fontsize{30}{48}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\textc}{\cfont}
\newcommand{\printa}[1]{\texta{#1}}
\newcommand{\printb}[1]{\textb{#1}}
\newcommand{\printc}[1]{\textc{#1}}
\DeclareMathOperator{\matha}{\printa{SPEZIAL}}
\DeclareMathOperator{\mathb}{\printb{SPEZIAL}}
\DeclareMathOperator{\mathc}{\printc{SPEZIAL}}
\DeclareMathOperator{\mathd}{\printd{SPEZIAL}}
\begin{document}
\chapter{Test}
This Is A Great Sentence With A $\matha$ Word.\\
{\Large This Is A Great Sentence With A $\mathb$ Word.}\\
{\Huge This Is A Great Sentence With A $\mathc$ Word.}\\
\\
SPEZIAL=14 rest=12 difference=2\\
SPEZIAL=21 rest=17 difference=4\\
SPEZIAL=30 rest=25 difference=5
\end{document}
Is there a way to define normalsize, large, Large, ... of the second font to fit to the rest of the text?
I'm using two different fonts in one document.
Short form:
\documentclass[a4paper, 12pt]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\newcommand*{\myfont}{\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\textmy}{\myfont}
\newcommand{\printmy}[1]{\textmy{#1}}
\DeclareMathOperator{\mathmy}{\printmy{SPEZIAL}}
\begin{document}
\chapter{Test}
This Is A Great Sentence With A $\mathmy$ Word.\\
This Is A Great Sentence With A {\large $\mathmy$} Word.\\ %bad fix
{\large This Is A Great Sentence With A $\mathmy$ Word.}
\end{document}
The SPEZIAL word doesn't use the right size.
Long form:
Here a (not really) MWE, but a test document with different sizes.
\documentclass[a4paper, 12pt]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\newcommand*{\nofont}{\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\textno}{\nofont}
\newcommand*{\largefont}{\large\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\textlarge}{\largefont}
\newcommand*{\afont}{\fontsize{12}{90}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\texta}{\afont}
\newcommand*{\bfont}{\fontsize{12}{1}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\textb}{\bfont}
\newcommand*{\cfont}{\fontsize{12}{200}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\textc}{\cfont}
\newcommand*{\dfont}{\fontsize{12}{48}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\textd}{\dfont}
\newcommand*{\efont}{\fontsize{13}{48}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\texte}{\efont}
\newcommand*{\ffont}{\fontsize{14}{48}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\textf}{\ffont}
\newcommand*{\gfont}{\fontsize{15}{48}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\textg}{\gfont}
\newcommand*{\hfont}{\fontsize{16}{48}\itshape\fontfamily{qzc}\selectfont}
\DeclareTextFontCommand{\texth}{\hfont}
\newcommand{\printno}[1]{\textno{#1}}
\newcommand{\printlarge}[1]{\textlarge{#1}}
\newcommand{\printa}[1]{\texta{#1}}
\newcommand{\printb}[1]{\textb{#1}}
\newcommand{\printc}[1]{\textc{#1}}
\newcommand{\printd}[1]{\textd{#1}}
\newcommand{\printe}[1]{\texte{#1}}
\newcommand{\printf}[1]{\textf{#1}}
\newcommand{\printg}[1]{\textg{#1}}
\newcommand{\printh}[1]{\texth{#1}}
\DeclareMathOperator{\mathno}{\printno{SPEZIAL}}
\DeclareMathOperator{\mathlarge}{\printlarge{SPEZIAL}}
\DeclareMathOperator{\matha}{\printa{SPEZIAL}}
\DeclareMathOperator{\mathb}{\printb{SPEZIAL}}
\DeclareMathOperator{\mathc}{\printc{SPEZIAL}}
\DeclareMathOperator{\mathd}{\printd{SPEZIAL}}
\DeclareMathOperator{\mathe}{\printe{SPEZIAL}}
\DeclareMathOperator{\mathf}{\printf{SPEZIAL}}
\DeclareMathOperator{\mathg}{\printg{SPEZIAL}}
\DeclareMathOperator{\mathh}{\printh{SPEZIAL}}
\begin{document}
\chapter{Test}
This Is A Great Sentence With A $\mathno$ Word.
This Is A Great Sentence With A $\mathlarge$ Word. I guess this is the right size.
{\large This Is A Great Sentence With A $\mathlarge$ Word. Doesn't grow.}
This Is A Great Sentence With A $\matha$ Word.
This Is A Great Sentence With A $\mathb$ Word.
This Is A Great Sentence With A $\mathc$ Word.
This Is A Great Sentence With A $\mathd$ Word.
This Is A Great Sentence With A $\mathe$ Word.
This Is A Great Sentence With A $\mathf$ Word. I guess this is the right size, too.
{\large This Is A Great Sentence With A $\mathf$ Word. Doesn't grow.}
This Is A Great Sentence With A $\mathg$ Word.
This Is A Great Sentence With A $\mathh$ Word.
\end{document}
Somehow I think, that the first variant is to small. So I tried to enlarge it (in the correct way).
My result so far is that I found two solutions, but they do not grow with the rest of the text.
Open questions:
- Is the second solution "more correct" than the first? Equal? First is better?
- How to let both fonts grow simultaneously
- The second argument of fontsize has no effect. (I guess this is may only be in my example) What is the "default" value? / Which value should I use (even if it doesn't matter)
Comment: \itshape is only used, because qzcisn't available in upshape



\DeclareMathOperator{\wombat}{\fontfamily{qzc}\mathit{Wombat}}– Johannes_B Aug 21 '16 at 15:53mathitis used.Why am I using qzc: SPEZIAL is actual a mathematical class. There are more classes of this type and I think that highlighting them is a good idea
– user1 Aug 21 '16 at 16:01\DeclareMathOperator{\wombat}{\text{\fontfamily{qzc}\itshape {Wombat}}}But it gets weirder by the minute. Maybe a more experience math and font user can help you better. Please update the question with the latest news, so it gets back on top of the main site. – Johannes_B Aug 21 '16 at 16:06\textno{SPEZIAL}analogous to\texttt{SPEZIAL}and so on... – user1 Aug 21 '16 at 16:14\normalsizewill give12ptfor all fonts in the document. However,ptis a font-relative unit: how large1ptis depends on the font. Hence,12ptin one font may be larger or smaller than12ptin another. This is why combinations of different fonts often scale one font to match the size of the other. – cfr Aug 21 '16 at 18:22