privatefontcollection

    0熱度

    1回答

    已將TrueType字體添加到我的項目資源(「MyFontResource」)中,並且已將生成操作設置爲「Resource」。我的意圖是用這個資源替換Label對象上的字體。 這裏是我的代碼: PrivateFontCollection myFonts = new PrivateFontCollection(); unsafe { fixed (byte* fontBytes = Pr

    10熱度

    1回答

    當我在Mono.net中調用PrivateFontCollection.AddFontFile方法時,它總是返回一個標準的font-family。這個錯誤已經在幾個網站上報道過,但據我所知沒有辦法解決它。該錯誤本身在Mono庫中尚未修復。有沒有解決方法? 編輯:作爲心腹的回答反應,我將張貼代碼: PrivateFontCollection pfc = new PrivateFontCollecti