Package org.jfree.fonts.registry

Examples of org.jfree.fonts.registry.FontMetricsFactory


  public FontMetrics getFontMetrics(final FontIdentifier record, final FontContext context)
  {
    final CompoundFontIdentifier cid = (CompoundFontIdentifier) record;
    final FontRegistry registry = cid.getRegistry();
    FontMetricsFactory metricsFactory = (FontMetricsFactory) metricsFactories.get(registry);
    if (metricsFactory == null)
    {
      metricsFactory = registry.createMetricsFactory();
      metricsFactories.put (registry, metricsFactory);
    }

    return metricsFactory.createMetrics(cid.getIdentifier(), context);
  }
View Full Code Here

TOP

Related Classes of org.jfree.fonts.registry.FontMetricsFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.