diff --git a/.github/settings.xml b/.github/settings.xml
index 8791e47..6e198f7 100644
--- a/.github/settings.xml
+++ b/.github/settings.xml
@@ -3,12 +3,12 @@
sonatype-nexus-snapshots
- ${env.NEXUS_USERNAME}
+ kemitix
${env.NEXUS_PASSWORD}
sonatype-nexus-staging
- ${env.NEXUS_USERNAME}
+ kemitix
${env.NEXUS_PASSWORD}
diff --git a/.github/workflows/build-maven.yml b/.github/workflows/build-maven.yml
index 289b4e8..89be01e 100644
--- a/.github/workflows/build-maven.yml
+++ b/.github/workflows/build-maven.yml
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- java: [ 11, 15 ]
+ java: [ 17 ]
steps:
- uses: kamiazya/setup-graphviz@v1
- uses: actions/checkout@v2
diff --git a/.github/workflows/sonatype-deploy.yml b/.github/workflows/sonatype-deploy.yml
index 3c36cb9..62e3cbb 100644
--- a/.github/workflows/sonatype-deploy.yml
+++ b/.github/workflows/sonatype-deploy.yml
@@ -14,7 +14,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
- java-version: 11
+ java-version: 17
- name: Build with Maven
run: mvn -B install
- name: Nexus Repo Publish
@@ -34,7 +34,6 @@ jobs:
-B \
deploy
env:
- NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
diff --git a/pom.xml b/pom.xml
index 56db32a..19adb78 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
fontface
- 1.0.0
+ 1.1.0
2.21
@@ -72,4 +72,4 @@
-
\ No newline at end of file
+
diff --git a/src/main/java/net/kemitix/fontface/FontFace.java b/src/main/java/net/kemitix/fontface/FontFace.java
index 8ec17fc..3bc1388 100644
--- a/src/main/java/net/kemitix/fontface/FontFace.java
+++ b/src/main/java/net/kemitix/fontface/FontFace.java
@@ -17,6 +17,18 @@ public class FontFace {
private int shadowOffsetX;
private int shadowOffsetY;
+ public static FontFace of(
+ URI fontUri,
+ int size,
+ String colour,
+ String shadowColour,
+ int shadowOffsetX,
+ int shadowOffsetY
+ ) {
+ return new FontFace(fontUri, size, colour,
+ shadowColour, shadowOffsetX, shadowOffsetY);
+ }
+
public static FontFace of(
URI fontUri,
int size,