On Fri, 2 Jul 2021 18:29:40 GMT, Phil Race <p...@openjdk.org> wrote: >> When you say "public" you mean in the lists that the implementation searches >> for a match ? >> This could get tricky. I don't have a complete answer off the top of my head. >> Could we at least filter the returned list of full and family names to >> exclude them ? >> Then explicit searches would work but no one will be seeing them in a list >> of fonts available to apps. > > the filter would be macOS only and exlude fonts with a name beginning with "."
That is possible yes. An alternative is that we don't store the {name/file} info for the fonts that we explicitly load in the same map as the one created by `MacFontFinder.populateFontFileNameMap` but in a separate Map, that is macOS-specific and only used when a FontResource is requested by a call that can be considered originating from a native request (since those should have access to the internal fonts). ------------- PR: https://git.openjdk.java.net/jfx/pull/547