Patrick Martin
Patrick Martin
Unless there’s an error in the Microsoft documentation, what we have is correct.
I looked at the diagram at the bottom of the page you linked in the microsoft documentation. which shows an array of structs containing both the advanceWidth and left side...
see the table "longHorMetric Record"
The issue is that the way the struct is setup, it's not possible to do one element of the struct but not the other, the way C style structs work...
now, that being said, we could have an issue where the documentation is trying to say the left side bearing defaults to zero after there's no more metric entries.
but i think this is likely an oversight where they forgot to mention the other variable.
That doesn't work, it breaks the rules of C-style structures which fonts are built using, you cannot change the size of an element of an array of structures as they...
the struct's size is always the sum of its member's sizes.
I'm not trying to be condescending. That was just the way I read it. I think you're reading too much into what i'm saying. I wasn't sure if you knew...
OK, just reread it, I misread it the first time, you are correct. Sorry about that, if you want to submit a PR, please feel free.