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
Added a Font Converter and align Font, FontFamily to System.Drawing interface (#13)
* Add GraphicsUnit
* Move installed fonts loading to InstalledFontCollection class
* Upgrade SkiaSharp to 2.88.8
* Move FaceName calculation to Font since FontFamily is not for any particular Style
* Rearrange generic family
* Create same public constructor as System.Drawing for FontFamily
FontFamily represent all possibles styles from a family name.
* Use new factory methods FromFIle, FromStream
* Minor changes
* Add FontStyle to Font
* Fix Clone function
(GetCellDescent will be added back later)
* Fix Dispose, ToString, Equals
* Group static properties
* Fix Metrics
* Add SizeInPoints property
* Add FontConverter to convert from Font to string and back
* Adjust unit tests for fonts
* Fix unit tests in linux
* minor changes
* define Font and FontFamily as sealed
* FromFile should not be public. Use the same way to load from a file as with System.Drawing
* Disable the tests that don't work as expected with skia
* Fix test exclusion for mac
* Throw exceptions as the doc says
* Fix merge of GraphicsUnit
* Add typeface index in Font.ToString()
* Inline GetFontFamilies() since it is only used in the constructor
Make constructor public because it is available in System.Drawing
* add test-cases for InstalledFontCollection and PrivateFontCollection
* Calculate DPI instead of having it hardcoded
* Fix exception message to be consistent with others
* Add default font directory for Linux
* Remove no longer used parameter
* Add Factory region and move methods before Methods region, to be consistent with Image.cs
* Remove Instance property since it is not part of System.Drawing interface and it is only used on FontFamily
* Fix summaries in FontConverter class (use <see> tag and remove System.Drawing references)
* relocate GetGenericFontFamily under Factory region and rename as FromGenericFontFamily
* reuse FontFamily constructor logic
* remove FontFamily(FontFamily[]) private constructor and relocate Match methods to a new Utilitiesregion
* fix enclosed class definition
* add missing Font constrcutors, reuse them, and redefine properties with private set for avoiding extra private property
* define PrivateFontCollection and InstalledFontCollection as sealed
* redefine InstalledFontCollection just based on SKFontManager
* set ownership to false in FromFontCollection method
* set ownership to false in FontFamily(FontFamily) constructor
* redefine FontFamily(string, FontFamily[]) constructor and reuse Families instance (instead of creating a new InstalledFontCollection instance)
* remove m_original property and define OriginalFontName instead (with get and private set)
* add gdiCharSet and gdiVerticalFont param descriptions
* fix comment in SizeInPoints for Display and Pixel values
---------
Co-authored-by: dsalvia <[email protected]>
Co-authored-by: damiansalvia <[email protected]>
0 commit comments