I need to convert some text-to-bitmap rendering routines in existing C++ code that is using GDI and GDI+ to use DirectWrite (CFF support and OTF-feature support required).
I'm new to DirectWrite. Spending some time on research on what's required for the migration of existing functionality and doing some prototyping, I encountered an issue: My problem is that DirectWrite (out of the box) doesn't support character spacing adjustment (which is a requirement for the existing app), at least not on Windows 7. I know it comes with Windows 8, but another requirement for this existing app is to run on Windows 7, unfortunately.
What I found in my research so far is that the way to go seems to implement a custom DirectWrite Text Layout, but I haven't found any good guideline on how to do this, especially in regards for character spacing (the documentation/examples on MSDN in regards of how to create a custom Text Layout are a little vague for my taste).
As I figure this must have been done before, before spending days and/or weeks of research and developement on re-inventing the wheel, does anybody here know a sample implementation of a DirectWrite text layout with custom character spacing I could use as a starting point or tutorial?
UPDATE1: Not an answer but - I found out that the IDWriteTextLayout1 interface (which supports setting the Character spaces) not only comes with Windows 8, but also with "Windows 7 Platform Update for SP1" (KB 2670838) on Windows 7. as I can require that for out app to run properly, this solves my issue, although it doesn't answer my question.