All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fernice.reflare.internal.SunFontHelper Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
/*
 * 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