Aric Stewart aric@codeweavers.com writes:
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?
It would probably make more sense to have create_font_base allocate it and then call create_font_from_data.