-
I notice that Is it possible to add a overload method like below? This method can filter the fonts not wanted. public static FontCollection AddSystemFonts(this FontCollection collection, Predicate<FontMetrics> predicate)
{
foreach (FontMetrics? metric in (IReadOnlyFontMetricsCollection)SystemFonts.Collection)
{
if(predicate(metric))
{
((IFontMetricsCollection)collection).AddMetrics(metric);
}
}
return collection;
} |
Beta Was this translation helpful? Give feedback.
Answered by
tocsoft
Feb 15, 2022
Replies: 1 comment 8 replies
-
@LeaFrock can you provide use case(s) why this is needed? How the current API is causing issues etc. it'll help us priorities API changes etc. |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
LeaFrock
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@LeaFrock can you provide use case(s) why this is needed? How the current API is causing issues etc. it'll help us priorities API changes etc.