RFR: 8360136: RFE: Add TextAttributes for OpenType font figure style features
Valery Semenchuk
duke at openjdk.org
Sat Jul 12 11:15:39 UTC 2025
On Fri, 11 Jul 2025 19:40:44 GMT, Phil Race <prr at openjdk.org> wrote:
>> Introducing to API constants, and implementation for controlling Figure Styles
>>
>> Target font: *Inter*
>>
>> Example screenshot
>>
>> 
>
> I have changed the bug summary so you will need to change the PR summary to match -
> 8360136: RFE: Add TextAttributes for OpenType font figure style features
@prrace about tests. I can write test with calculating width/height with font which is support it, and validate. Primitive one.
For example
* at start - need install font with this features. For example `Inter` (also need attach license of it inside repo?)
* get char widths for 0-1-2-3-4-5-6-7-8-9 with `pnum`
* get char widths for 0-1-2-3-4-5-6-7-8-9 with `tnum`
* if all values equals - it's means `tnum` not works.
* also - if font created without FigureWidth options, it's must be not equals to `tnum`
Maybe, maybe. For `tnum` we can validate each width for numbers per char. But - I think it's font part, we don't need test it
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26144#issuecomment-3065083338
More information about the client-libs-dev
mailing list