Main Menu

DirectWrite

Started by Paul Squires, September 13, 2019, 07:10:44 PM

Previous topic - Next topic

Paul Squires

Hi Jose, I am writing an application using your CWindow class (not using WinFBE visual designer) and I would like to use DirectWrite for the text/font display as I am pretty sure that it would look much better than GDI especially with the larger font sizes that I am using. I see that you have converted the include files for PB but have you attempted such a conversion for FB? Would this technology even be workable in FB? It is all COM based from I can see, right? Just asking the questions at this point as I wouldn't want you to expend time on this if it is a very big job.

Thanks!
Paul Squires
PlanetSquires Software

José Roca

I gave up with Direct2D many years ago because of its complexity. It is not a matter of translating an header of two, but it has dozens of dependencies: the whole Direct2D subsystem, part of Direct3D and the Windows Imaging Component among them.

All I did was to translate a couple of C++ examples with PowerBasic:

https://forum.powerbasic.com/forum/jose-s-corner/source-code-ab/52470-simple-direct2d-application-sample
https://forum.powerbasic.com/forum/jose-s-corner/source-code-ab/52477-direct2d-text-animation-example

With FB, that code would be even harder to write unless the interfaces are wrapped with classes, but there are so many interfaces that it will require an enormous effort.

Paul Squires

Thanks Jose! I appreciate the answers. I will stick with the traditional GDI and GDI+. At least I know most of that stuff.  :)
Paul Squires
PlanetSquires Software