Allow selection of shadow colour (#47)

This commit is contained in:
Paul Campbell 2021-12-31 08:25:33 +00:00 committed by GitHub
parent 603ef11dcd
commit ef4b86bf3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 7 deletions

View file

@ -3,12 +3,12 @@
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.NEXUS_USERNAME}</username>
<username>kemitix</username>
<password>${env.NEXUS_PASSWORD}</password>
</server>
<server>
<id>sonatype-nexus-staging</id>
<username>${env.NEXUS_USERNAME}</username>
<username>kemitix</username>
<password>${env.NEXUS_PASSWORD}</password>
</server>
</servers>

View file

@ -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

View file

@ -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 }}

View file

@ -12,7 +12,7 @@
</parent>
<artifactId>fontface</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<properties>
<tiles-maven-plugin.version>2.21</tiles-maven-plugin.version>
@ -72,4 +72,4 @@
</plugins>
</build>
</project>
</project>

View file

@ -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,