org.fernice.reflare.internal.SunFontHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fernice-reflare-access Show documentation
Show all versions of fernice-reflare-access Show documentation
Dirty helper for accessing internal Java API
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.fernice.reflare.internal;
import java.awt.Font;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class SunFontHelper extends Helper {
private static final SunFontAccessor accessor = accessor(SunFontAccessor.class);
@Nullable
public static Font findFont(@NotNull String name, int weight, boolean italic) {
return accessor.findFont(name, weight, italic);
}
public interface SunFontAccessor {
@Nullable
Font findFont(@NotNull String name, int weight, boolean italic);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy