How to Add Symbols Like Phi , Sqaure Roots , Alpha .. to WinAPI32 Application
I try to build Win32API engineering Applications..
the output text should Have so Many Latin Letters Like Alpha , Phi , Theta
and many math Symbols Like Square roots.. But I do not know how can I use these symbols with Function DrawText() ,
Can I get any Help..
Kind Regards
Re: How to Add Symbols Like Phi , Sqaure Roots , Alpha .. to WinAPI32 Application
Latin? You mean Greek?
As for the issue, DrawTex is a bad choice for a task like this. What you need is rich text control.
Re: How to Add Symbols Like Phi , Sqaure Roots , Alpha .. to WinAPI32 Application
Many thanks Igor for your answer.
May I request further details or any Hints to use Rich text control.
My Kind Regards.
Re: How to Add Symbols Like Phi , Sqaure Roots , Alpha .. to WinAPI32 Application
Re: How to Add Symbols Like Phi , Sqaure Roots , Alpha .. to WinAPI32 Application
Yes, 2kaud, you're absolutely right. In case all the required characters fit into standard Unicode set, and all the glyphs are implemented in the same font in use, DrawText may be okay.
Re: How to Add Symbols Like Phi , Sqaure Roots , Alpha .. to WinAPI32 Application
1) Compile your app as a unicode app, not as a ANSI app.
An ansi app is limited to 256 printable characters and it likely won't contain all the special maths symbols.
if you just need simple one-line one-character at a time maths formula, then DrawText() will do.
Richtext may not really fix your problem.
If you want to handle really complex formulas in a visually aestethic method... You need to have a look at an advanced library to handle such things. visualising math is a branch of graphics programming all on it's own, and it's (still) not even solved anywhere near reasonably on browsers,
most libraries catering to this end up creating bitmaps.
there are even online LATEX to bitmap converters that may do what you need (if you can live with the performance issues with doing this over the internet).