Loading fonts from files #2114
HaanstootZA
started this conversation in
Ideas
Replies: 3 comments 2 replies
-
Hey @HaanstootZA, Thanks for the idea! This might be possible but is complicated to make work across all of the platforms in an easy way. I have had other requests for this and will probably be getting around to it in the near future. |
Beta Was this translation helpful? Give feedback.
2 replies
-
See #2120 for details of the issue tracking this feature. |
Beta Was this translation helpful? Give feedback.
0 replies
-
FYI, this is now complete and should land in 2.6.2! Thanks again for the feedback everyone. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I am busy converting some winforms to Eto, but some of my code uses a font file.
Are there any plans to allow Eto to load from font files?
var fontCollection = new PrivateFontCollection() var heighInPixels = 12; fontCollection.AddFontFile(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "glyphfont.ttf")); return new Font(fontCollection.Families[0], heightInPixels, GraphicsUnit.Pixel);
Beta Was this translation helpful? Give feedback.
All reactions