fix(pdf): preserve accented names in revised CV and letter headings
This commit is contained in:
@@ -60,7 +60,8 @@ public sealed class CoverLetterDocumentRenderer
|
||||
""";
|
||||
if (s.DesignVersion == 2)
|
||||
{
|
||||
var css = $"h1,h2{{font-family:{CvDocumentFonts.Stack(s.HeadingFont!)};}}h1{{font-size:{F(theme.NameSizePt - 2)}pt;}}header{{border-bottom-width:.4mm;}}";
|
||||
// Sender-name ascenders must clear the first-page clipping boundary, as in revised CVs.
|
||||
var css = $"h1,h2{{font-family:{CvDocumentFonts.Stack(s.HeadingFont!)};}}h1{{font-size:{F(theme.NameSizePt - 2)}pt;padding-top:2mm;}}header{{border-bottom-width:.4mm;}}";
|
||||
css += theme.HeaderStyle switch
|
||||
{
|
||||
"band" when theme.Layout == "header-band" => $"header{{background:{s.AccentColor};color:{ThemedCvRenderer.ContrastInk(s.AccentColor!)};padding:6mm;margin-bottom:8mm;border:0;}}header h1{{color:inherit;}}",
|
||||
|
||||
@@ -276,8 +276,9 @@ public sealed class ThemedCvRenderer : IThemedCvRenderer
|
||||
? $@".main{{counter-reset:cv-section;}} .main>.section>.section-title{{counter-increment:cv-section;font-family:{CvDocumentFonts.Stack(t.UtilityFont)};font-weight:600;}} .main>.section>.section-title::before{{content:counter(cv-section,decimal-leading-zero) ' — ';color:var(--cv-accent-color);}}"
|
||||
: string.Empty;
|
||||
|
||||
// Reserve ink clearance for accented capitals above the tight name line box at the first print fragment.
|
||||
var revisedCss = settings.DesignVersion == 2
|
||||
? $".header .name{{margin-bottom:{F(t.NameGapMm * density)}mm;}}.header + .main{{padding-top:{F(t.HeaderContentGapMm * density)}mm;}}" : string.Empty;
|
||||
? $".name{{padding-top:2mm;}}.header .name{{margin-bottom:{F(t.NameGapMm * density)}mm;}}.header + .main{{padding-top:{F(t.HeaderContentGapMm * density)}mm;}}" : string.Empty;
|
||||
if (settings.DesignVersion == 2 && twoColumn)
|
||||
{
|
||||
var edge = layout == "sidebar-right" ? "right" : "left";
|
||||
|
||||
Reference in New Issue
Block a user