RFR: 8349008: Remove temporary font file tracking code

Lukasz Kostyra lkostyra at openjdk.org
Fri Jan 31 12:42:02 UTC 2025


This is a cleanup follow-up, removing `FontFileWriter.FontTracker` and all related uses. `FontTracker` was tracking font size use when SecurityManager was present, however since we removed SM, `FontTracker` was no longer activated and as such was dead code.

`FontFileWriter.FontTracker` and its use in `FontFileWriter` + related methods were removed. This in turn cleaned up `PrismFontFile` and made a couple of variables not longer used, including a `bool tracking` argument in constructor. These cleanups propagated to `PrismFontFactory`, `{CT,DW,FT}Factory` and `{CT,DW,FT}FontFile` classes.

Tests worked the same after this change.

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

Commit messages:
 - 8349008: Remove temporary font file tracking code

Changes: https://git.openjdk.org/jfx/pull/1693/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1693&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8349008
  Stats: 215 lines in 9 files changed: 0 ins; 175 del; 40 mod
  Patch: https://git.openjdk.org/jfx/pull/1693.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1693/head:pull/1693

PR: https://git.openjdk.org/jfx/pull/1693


More information about the openjfx-dev mailing list