On Fri, 11 Jul 2025 19:40:44 GMT, Phil Race <p...@openjdk.org> wrote:

>> Introducing to API constants, and implementation for controlling Figure 
>> Styles
>> 
>> Target font: *Inter*
>> 
>> Example screenshot 
>> 
>> ![image](https://github.com/user-attachments/assets/e19af8ad-9809-4a0a-8a30-60921e490bd4)
>
> 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

Reply via email to