Skip to content

Commit 56e37af

Browse files
committed
How did I not have FreetypeSkin?
It's so commonly used...
1 parent 4befa06 commit 56e37af

4 files changed

Lines changed: 26 additions & 0 deletions

File tree

src/main/java/gdx/liftoff/Listing.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public static ArrayList<Language> chooseLanguages(Collection<String> names) {
102102
new Anim8(),
103103
new TenPatch(),
104104
new Stripe(),
105+
new FreetypeSkin(),
105106
new GameJoltApi(),
106107
new GdxGltf(),
107108
new HackLights(),

src/main/kotlin/gdx/liftoff/data/libraries/unofficial/ThirdPartyExtensions.kt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,27 @@ class Stripe : ThirdPartyExtension() {
584584
}
585585
}
586586

587+
/**
588+
* Supports FreeType configuration in Skin JSON files.
589+
* @author Raymond Buckley
590+
*/
591+
@Extension
592+
class FreetypeSkin : ThirdPartyExtension() {
593+
override val id = "freetypeSkin"
594+
override val defaultVersion = "2.0.0"
595+
override val url = "https://github.com/raeleus/stripe"
596+
override val group = "com.github.raeleus.stripe"
597+
override val name = "FreetypeSkin"
598+
599+
override fun initiateDependencies(project: Project) {
600+
addDependency(project, Core.ID, "com.github.raeleus.stripe:freetype")
601+
602+
addDependency(project, GWT.ID, "com.github.raeleus.stripe:freetype:sources")
603+
addGwtInherit(project, "com.ray3k.stripe")
604+
Freetype().initiate(project)
605+
}
606+
}
607+
587608
/**
588609
* Support for the GLTF format for 3D models and physically-based rendering; a huge time-saver for 3D handling.
589610
* @author mgsx

src/main/resources/ui-data/nls.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ colorful=Colorful-GDX
139139
anim8=Anim8-GDX
140140
tenPatch=TenPatch
141141
stripe=Stripe
142+
freetypeSkin=FreetypeSkin
142143
gameJoltApi=Game Jolt API
143144
gdxGltf=gdx-gltf
144145
hackLights=HackLights
@@ -442,6 +443,7 @@ colorfulTip=Alternative color model for sprites.
442443
anim8Tip=Animated GIF and PNG support, as well as 8-bit-palette PNGs.
443444
tenPatchTip=Extension of 9-patch images.
444445
stripeTip=Collected Scene2D widgets and utilities.
446+
freetypeSkinTip=Supports Freetype configuration in Skin JSON files.
445447
gameJoltApiTip=Utilities for accessing the Game Jolt API for highscores and data storage.
446448
gdxGltfTip=GLTF support for 3D models and physically-based rendering.
447449
hackLightsTip=A simple framebuffer based lighting engine for libGDX.
@@ -617,6 +619,7 @@ squidlibTerms=text based,roguelike,yellowstonegames,yellow stone games,tommy ett
617619
squidlibExtraTerms=serialization,util,yellowstonegames,yellow stone games,tommy ettinger,tettinger
618620
squidlibUtilTerms=ai,grid based,yellowstonegames,yellow stone games,tommy ettinger,tettinger,generation,procgen
619621
stripeTerms=scene2d,widget,raeleus,ray3k,raymond buckley
622+
freetypeSkinTerms=scene2d,widget,skin,json,freetype,type,text,ui,raeleus,ray3k,raymond buckley,stripe
620623
tantrumDigitalTerms=tommy ettinger,tettinger,fury,fory,serialization,math
621624
tantrumJdkgdxdsTerms=tommy ettinger,tettinger,fury,fory,serialization,data structures
622625
tantrumLibgdxTerms=tommy ettinger,tettinger,fury,fory,serialization

src/main/resources/ui-data/urls.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ squidlibUrl=https://github.com/yellowstonegames/SquidLib
123123
squidlibExtraUrl=https://github.com/yellowstonegames/SquidLib
124124
squidlibUtilUrl=https://github.com/yellowstonegames/SquidLib
125125
stripeUrl=https://github.com/raeleus/stripe
126+
freetypeSkinUrl=https://github.com/raeleus/stripe
126127
tantrumDigitalUrl=https://github.com/tommyettinger/tantrum
127128
tantrumJdkgdxdsUrl=https://github.com/tommyettinger/tantrum
128129
tantrumLibgdxUrl=https://github.com/tommyettinger/tantrum

0 commit comments

Comments
 (0)