Class IntelligentResolver


  • public final class IntelligentResolver
    extends java.lang.Object
    A namespace object that contains one method: choosePreferredFont.

    Synchronization

    This class contains no mutable static or non-static data, so it can be used safely from multiple threads. This module has been rewritten (and reformatted) to use the new CacheSupportInfo helper class that can cache the information it needs. That allows the resolver to operate without actually parsing the fonts its operating on, assuming the needed CacheSupportInfo objects already exist in the cache.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Font choosePreferredFont​(Font f1, Font f2, boolean preferFirst)
      Given 2 fonts that are "the same", pick one to be preferred.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait