我在CSS中为我的网页使用Google字体“Open Sans,sans-serif”。我使用evo pdf生成PDF。在这个使用TextElement动态创建页眉和页脚。c#中的FontFamily问题#
我的问题是在c#fontfamily没有这样的谷歌字体。我怎样才能在C#fontfamily中获得“Open Sans,sans-serif”?
TextElement footerText = new TextElement(0, 15, "Page &p; of &P; ",
new System.Drawing.Font(this.OpenSans,12, FontStyle.Regular, GraphicsUnit.Pixel));
footerText.TextAlign = HorizontalTextAlign.Right;
footerText.ForeColor = Color.Black;
footerText.EmbedSysFont = true;
htmlToPdfConverter.PdfFooterOptions.AddElement(footerText);
詹姆斯特别想要一个Google字体,而不是标准的Times New Roman。 – 2015-02-11 11:06:51
是的,我需要谷歌字体在C# – James 2015-02-13 06:14:30