Aric Stewart aric@codeweavers.com writes:
That looks unnecessarily complicated. Why allocate and initialize the data only to immediately replace it?
On Wed Sep 3 11:45:18 2014, Alexandre Julliard wrote:
There ends up being 2 ways that a IDWriteFont is created, one via existing data (as shown here) where we do not need the data initialized and one via an external resource (Such as a logfont or IDWriteFontFace) where we will use the initialized data.
Would you prefer that I do not alloc/initialize the data in create_font and instead only alloc/initialize in the external resource case?
thanks! -aric
Aric Stewart aric@codeweavers.com writes:
It would probably make more sense to have create_font_base allocate it and then call create_font_from_data.