| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// - `char_kernings_` has N elements, where each value is the adjustmentIs the last kerning value necessary? Could this actually be N-1? Although keeping it as N seems to makes things simpler.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// - `char_kernings_` has N elements, where each value is the adjustmentIs the last kerning value necessary? Could this actually be N-1? Although keeping it as N seems to makes things simpler.
Probably, but it makes code that loops through the elements more complicated. I actually went in the opporsite direction and changed `char_positions_` to have N elements as well. See patchsets 5..7.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Lousy human can't refactor code correctly...
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Split kerning data out of `CPDF_TextObject::char_positions_`
Currently, `char_positions_` contains both positions and kerning data,
which have different units of measurement. CPDF_TextObject stores
`CPDF_Font::kInvalidCharCode` in placeholder `char_codes_` entries to
indicate when a `char_positions_` entry is really kerning data. Instead
of doing this complicated scheme, separate out the kerning data into its
own vector, and then adjust all `char_positions_` and `char_codes_`
usage accordingly.
At the same time, get rid of the scheme where `char_positions_` has one
fewer element than `char_codes_`, and just always store a 0 there. Then
code that reads from `char_positions_` can be simplified and just read
the value instead of sometimes having to fill in the implicit 0.
This CL is almost entirely AI-generated, with some human touchups.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |