On Fri, 22 Aug 2025 18:21:18 GMT, Volker Simonis <simo...@openjdk.org> wrote:

> > I already ran all our automated tests, and I'm not too surprised they pass, 
> > since they probably don't cover this as well as they should.
> 
> Thanks!
> 
> > I think it would be possible and a good idea to add a test. All you need to 
> > do is find a font that definitely supports Khmer.
> 
> I can use 
> [`hb-subset`](https://man.archlinux.org/man/extra/harfbuzz-utils/hb-subset.1.en)
>  to create a subset of the [KhmerOS](https://www.cambodia.org/fonts/) open 
> source font (licensed under LGPL 2.1 or later) which will be just enough for 
> the test and check that in along with the test. The subsetted font file will 
> be 28kb. Would that be acceptable

No. That won't be allowed. You aren't using your own IP.
I meant just use Font.canDisplayUpTo(String) on the physical fonts on the 
system until you find one that can that can render the entire string. This will 
work on Windows + Linux. Mac, unfortunately it will be less useful since all 
fonts will report they support Khmer. I would skip the test on Mac.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/26825#issuecomment-3215420938

Reply via email to