示例#1
0
        public static FontSize GetFontSize(ResumeFont resumeFont)
        {
            var fontSize = new FontSize();

            fontSize.Val = new StringValue((resumeFont.Size * 2f).ToString());
            return(fontSize);
        }
示例#2
0
        public static Font GetPdfFont(ResumeFont resumeFont)
        {
            var pdfFont = FontFactory.GetFont(
                Verdana,
                resumeFont.Size,
                FontWeight(resumeFont.FontWeight));

            return(pdfFont);
        }
示例#3
0
        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);
        }