Exemplo n.º 1
0
        public static FontSize GetFontSize(ResumeFont resumeFont)
        {
            var fontSize = new FontSize();

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

            return(pdfFont);
        }
Exemplo n.º 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);
        }