*/
public static FontServer makeFontServer(final Log logger,
final SessionConfig configuration) throws FOrayException {
final EntityResolver entityResolver = configuration.makeEntityResolver();
final PsServer psServer = FOraySpecific.makePsServer();
final FontServer4a forayFontServer = new FontServer4a(logger, psServer);
forayFontServer.setBaseFontURL(
configuration.optionFontBaseDirectory());
forayFontServer.setBaseURL(configuration.optionBaseDirectory());
forayFontServer.setEntityResolver(entityResolver);
try {
forayFontServer.setup(configuration.optionFontConfiguration(),
null);
} catch (final FontException e) {
throw new FOrayException(e);
}
return forayFontServer;