public static FontSize GetFontSize(ResumeFont resumeFont) { var fontSize = new FontSize(); fontSize.Val = new StringValue((resumeFont.Size * 2f).ToString()); return(fontSize); }
public static Font GetPdfFont(ResumeFont resumeFont) { var pdfFont = FontFactory.GetFont( Verdana, resumeFont.Size, FontWeight(resumeFont.FontWeight)); return(pdfFont); }
public static RunProperties GetRunProperties(ResumeFont resumeFont) { var runProperties = new RunProperties(); if (resumeFont.FontWeight == ResumeFontWeight.Bold) { var bold = new Bold { Val = OnOffValue.FromBoolean(true) }; runProperties.AppendChild(bold); } runProperties.AppendChild(GetFontSize(resumeFont)); return(runProperties); }