private synchronized List<FontProvider<?>> getProviders() {
// TODO fix true type font
// final String firstProviderName = (String)AccessController.
// doPrivileged(new GetPropertyAction("jnode.font.renderer", "ttf"));
final String firstProviderName =
(String) AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "bdf"));
if ((providers.size() > 1) && !firstProviderName.equals(providers.get(0).getName())) {
for (int i = 1; i < providers.size(); i++) {
if (firstProviderName.equals(providers.get(i).getName())) {
// exchange the providers so that firstProvider is always at index 0