You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature-WANT]Supported FontFamilyCache for using embedded font #2021
I want to use the embedded font for OxyPlot.Wpf, but the code ff = new FontFamily(familyName); provided in class CanvasRenderContext can only use public FontFamily(string familyName) instead of public FontFamily(Uri baseUri, string familyName).
So the new feature wana to be provided and
Here is some code about my solution:
// CanvasRenderContext.cs// Make fontFamilyCache static and add method named AddFontFamilyCachepublicstaticvoidAddFontFamilyCache(stringfamilyName,FontFamilyfontFamily){if(!fontFamilyCache.TryGetValue(familyName,out_)){fontFamilyCache.Add(familyName,fontFamily);}}
This seems a reasonable idea to me, but I'm not sure where we'd include it. Linking #1556 because there may be API considerations (probably not, as this will need to be per platform)
Activity
VisualMelon commentedon Aug 16, 2023
This seems a reasonable idea to me, but I'm not sure where we'd include it. Linking #1556 because there may be API considerations (probably not, as this will need to be per platform)