News for hackers. Stuff that matters.
Re:Asm-Dom – WebAssembly Virtual DOM by ptx on Sunday May 21, 2017 @08:45AM (#14387027)
This might be a dumb question, but after figuring out the width of "AB" and "BC", how do you know the width of "ABC"? Do you just calculate the distances A–B and B–C as ab_distance = width("AB") - (width("A") + width("B")) ... and so on?
Re:Asm-Dom – WebAssembly Virtual DOM by gizmo on Sunday May 21, 2017 @02:14PM (#14388371)
Yep. Kerning is just the amount of space in between two characters. So to calculate the total width of a string you take the (fixed) widths of the individual characters and you add the variable widths of the space between each character pair.