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
add an event to IFontCollection that will be called before a font instance is returned that can be used to switch the font instance in the collection with an alternative one.
Additionally should be able to register a new font file during this callback and allow the newly installed file to be returned in place of discovered instance.
publicclassFontDiscoveryEventArgs:EventArgs{publicstringFontName{get;}publicFontStyleFontStyle{get;}publicboolFontFamilyInstalled{get;}publicboolFontInstalled{get;}publicboolUseFont(stringpath){// .. calls font collection install and then sets the font name and style to the installed font returned}publicboolUseFont(Streamstream){// .. calls font collection install and then sets the font name and style to the installed font returned}publicboolUseFont(stringfontName,FontStylestyle){// tries to find the font in the collection if exists then it replaces the final // returned font with the newly named one and returns true.//if doesn't exist then no change and returns false}}
if after the event is called we still don't have a matching font then we will follow the same logic we have now and ultimately throw as required.
The text was updated successfully, but these errors were encountered:
add an event to
IFontCollection
that will be called before a font instance is returned that can be used to switch the font instance in the collection with an alternative one.Additionally should be able to register a new font file during this callback and allow the newly installed file to be returned in place of discovered instance.
if after the event is called we still don't have a matching font then we will follow the same logic we have now and ultimately throw as required.
The text was updated successfully, but these errors were encountered: