I tried using Open Type fonts for both labels, text fields, and for drawing in the paint event. But that will not work. Is there a way to make Open Type Font work?
This is not possible in Winforms, GDI + only supports TrueType fonts. You will need to upgrade to WPF to get OpenType support.
You can use the System.Windows.Media , as it would in WPF, here you have an example:
System.Windows.Media
public static string GetFontList(String ElementSeparator) { string r = ""; // WPF incl Adobe and OpenType foreach (System.Windows.Media.FontFamily fontFam in System.Windows.Media.Fonts.SystemFontFamilies) { r += fontFam.Source; r += ElementSeparator; } // True type, incl Type face names eg Arial Rounded MT Bold foreach (System.Drawing.FontFamily f in System.Drawing.FontFamily.Families) { if(!r.Contains(f.Name)) { r += f.Name; r += ElementSeparator; } } return r; }
Source: https://habr.com/ru/post/1347893/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1347888/sharepoint-2010-redeploying-feature-adds-duplicate-web-parts-to-page&usg=ALkJrhhM_v5ZgnE_ZfXK487i1OB3kOBx7wNHibernate - create complex index from hbm file - nhibernateHow to use branches with multiple projects and Teamcity - branch(document.evaluate) → src image contains several conditions, how? - javascriptjquery - use a variable outside the function - variablesDisplay database information in ado.net - c #How to add xml-stylesheet node processing instruction with Python 2.6 and mini-mini? - pythonWhat does it mean to "move" a file to the list of included paths? - phpget horizontal and vertical accuracy in an Android device - androidDoes Multiple Shard Key Help Performance In Mongodb? - mongodbAll Articles