From e71e6f9e744a5ff939cb95bf1fa28e603c7f3823 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 18 Sep 2020 18:24:39 +0100 Subject: [PATCH] Add Font{Cache,Loader} interfaces --- src/main/java/net/kemitix/fontface/FontCache.java | 9 +++++++++ src/main/java/net/kemitix/fontface/FontLoader.java | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/main/java/net/kemitix/fontface/FontCache.java create mode 100644 src/main/java/net/kemitix/fontface/FontLoader.java diff --git a/src/main/java/net/kemitix/fontface/FontCache.java b/src/main/java/net/kemitix/fontface/FontCache.java new file mode 100644 index 0000000..afdacb7 --- /dev/null +++ b/src/main/java/net/kemitix/fontface/FontCache.java @@ -0,0 +1,9 @@ +package net.kemitix.fontface; + +import net.kemitix.fontface.FontFace; + +import java.awt.*; + +public interface FontCache { + Font loadFont(FontFace fontFace); +} diff --git a/src/main/java/net/kemitix/fontface/FontLoader.java b/src/main/java/net/kemitix/fontface/FontLoader.java new file mode 100644 index 0000000..af6ad4b --- /dev/null +++ b/src/main/java/net/kemitix/fontface/FontLoader.java @@ -0,0 +1,9 @@ +package net.kemitix.fontface; + +import net.kemitix.fontface.FontFace; + +import java.awt.*; + +public interface FontLoader { + Font loadFont(FontFace fontFace); +}