Allow selection of shadow colour (#47)
This commit is contained in:
parent
603ef11dcd
commit
ef4b86bf3a
5 changed files with 18 additions and 7 deletions
4
.github/settings.xml
vendored
4
.github/settings.xml
vendored
|
@ -3,12 +3,12 @@
|
||||||
<servers>
|
<servers>
|
||||||
<server>
|
<server>
|
||||||
<id>sonatype-nexus-snapshots</id>
|
<id>sonatype-nexus-snapshots</id>
|
||||||
<username>${env.NEXUS_USERNAME}</username>
|
<username>kemitix</username>
|
||||||
<password>${env.NEXUS_PASSWORD}</password>
|
<password>${env.NEXUS_PASSWORD}</password>
|
||||||
</server>
|
</server>
|
||||||
<server>
|
<server>
|
||||||
<id>sonatype-nexus-staging</id>
|
<id>sonatype-nexus-staging</id>
|
||||||
<username>${env.NEXUS_USERNAME}</username>
|
<username>kemitix</username>
|
||||||
<password>${env.NEXUS_PASSWORD}</password>
|
<password>${env.NEXUS_PASSWORD}</password>
|
||||||
</server>
|
</server>
|
||||||
</servers>
|
</servers>
|
||||||
|
|
2
.github/workflows/build-maven.yml
vendored
2
.github/workflows/build-maven.yml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java: [ 11, 15 ]
|
java: [ 17 ]
|
||||||
steps:
|
steps:
|
||||||
- uses: kamiazya/setup-graphviz@v1
|
- uses: kamiazya/setup-graphviz@v1
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
3
.github/workflows/sonatype-deploy.yml
vendored
3
.github/workflows/sonatype-deploy.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 17
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B install
|
run: mvn -B install
|
||||||
- name: Nexus Repo Publish
|
- name: Nexus Repo Publish
|
||||||
|
@ -34,7 +34,6 @@ jobs:
|
||||||
-B \
|
-B \
|
||||||
deploy
|
deploy
|
||||||
env:
|
env:
|
||||||
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
|
|
||||||
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
|
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
|
||||||
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
|
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
|
||||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -12,7 +12,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>fontface</artifactId>
|
<artifactId>fontface</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>1.1.0</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<tiles-maven-plugin.version>2.21</tiles-maven-plugin.version>
|
<tiles-maven-plugin.version>2.21</tiles-maven-plugin.version>
|
||||||
|
|
|
@ -17,6 +17,18 @@ public class FontFace {
|
||||||
private int shadowOffsetX;
|
private int shadowOffsetX;
|
||||||
private int shadowOffsetY;
|
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(
|
public static FontFace of(
|
||||||
URI fontUri,
|
URI fontUri,
|
||||||
int size,
|
int size,
|
||||||
|
|
Loading…
Reference in a new issue