I'm using the C-calling convention so there is no constructor. Seeing as
CD_IUP is an alias for cdContextIup and CD_NATIVEWINDOW is an alias for
cdContextNativeWindow and they both have the same exact prototype, they should
work exactly alike -- except they don't. Maybe the documentation is missing
something or it is well hidden? It doesn't really matter since CD_IUP is
portable and CD_NATIVEWINDOW is not and at this point in history I'm more
interested in being portable, but issues are issues and they still need to be
reported for feedback.




I took your suggestion and changed the font from Courier to Comic Sans MS and
that seemed to work. I tried other fonts and the results varied. Arial was
corrupt but not as bad as Courier. It seems that monospaced fonts are affected
most (even Consolas) but proportional fonts are not. Microsoft doesn't appear
to have acknowledged the issue, even though I see hints of it on their
website, e.g. --
https://social.msdn.microsoft.com/Forums/vstudio/en-US/5ef2d2f7-5724-4abf-8252-54cec49eac88/quotcourier-newquot-font-visually-corrupted?forum=visualstudiogeneral.
I turned off ClearType and that cleared things up so this is definitely a
Microsoft feature ... uh, I mean bug.




This is an issue that needs to be documented in IUP since Microsoft doesn't
appear motivated to either acknowledge or repair the problem.




Thanks,

Andrew










On 12/28/2021 at 10:46 AM, Antonio Scuri <antonio.sc...@gmail.com> wrote:


NATIVEWINDOW is used by IUP, so you are actually using it. You may have some
issues using its constructor, but you are using it.



To replace the native Win32 driver by the OpenGL driver is not recommended,
unless you need OpenGL support.




You may try changing the font. Maybe Courier is not performing as expected at
that small size. Text rendering in native Windows is usually good and better
than the other drivers.Don't know exactly what's going on in that case.




Best,


Scuri






Em ter., 28 de dez. de 2021 às 14:14, Andrew Robinson <arobinso...@cox.net>
escreveu:




I tried the other two drivers (NATIVEWINDOW and GL) and they don't work at all
on Windows, so do you have any recommendations for a workaround or alternate?




Thanks,
Andrew





On 2021-12-08 at 9:45 AM, Antonio Scuri <antonio.sc...@gmail.com> wrote:



  Ok So you are actually using the Win32 based driver.



  We use native functions to do the drawing. Text drawing is done by TextOut
Win32 api function. Whe text orientation is used we simply use CreateFont with
an angle parameter.




  So there isn't much I can do.




Best,

Scuri
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to