Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I'm using OpenTK, and I want to substitude FreeType for the original Graphics.DrawString which is terrible and uncontrollable, yet I've found the way .NET treats system fonts convenient, such as
System.Drawing.Font font=new Font("Arial",12);
While using FreeType, FT_NEW_FACE requires full font path, but FT_New_Memory_Face reads font faces from memory. So I'm thinking, besides scanning for the original font path of a system font and pass it to FT_NEW_FACE (like in the last solution of this question http://stackoverflow.com/questions/11387564/get-a-font-filepath-from-name-and-style-in-c-windows[^], which is really tricky), is it possible to pass the font data from System.Drawing.Font into FT_New_Memory_Face, to get a FT_FACE? (Sort of like a explicit type conversion)
Posted
Updated 18-May-15 7:14am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900