Select real Computer Modern small caps
Add the cmcsc10 face for \scshape and \textsc, including its Type1 outline, and compose the sc shape with the surrounding family and series. Bold small caps substitute cmbx10 and a later shape command wins, matching NFSS.
This commit is contained in:
1 parent
9140990a7d
commit
e303f7852f
11 files changed
+150
-13
No files matched your search
@@ -33,6 +33,8 @@ pub enum FontFace {
|
||||
SansBold,
|
||||
/// Computer Modern sans-serif italic (`cmssi10`).
|
||||
SansItalic,
|
||||
/// Computer Modern roman small caps (`cmcsc10`).
|
||||
SmallCaps,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
@@ -286,6 +288,7 @@ fn paragraph_face(font: ParagraphFont) -> FontFace {
|
||||
ParagraphFont::Sans => FontFace::Sans,
|
||||
ParagraphFont::SansBold => FontFace::SansBold,
|
||||
ParagraphFont::SansItalic => FontFace::SansItalic,
|
||||
ParagraphFont::SmallCaps => FontFace::SmallCaps,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user