我在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