All Projects → intrigus → gdx-freetype-gwt

intrigus / gdx-freetype-gwt

Licence: Apache-2.0 license
Freetype for gwt

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to gdx-freetype-gwt

libgdx-transitions
libgdx screen transitions/fading
Stars: ✭ 43 (+4.88%)
Mutual labels:  libgdx
gdx-gameanalytics
Gameanalytics.com client implementation for libGDX
Stars: ✭ 28 (-31.71%)
Mutual labels:  libgdx
vavr-gwt
GWT module for Vavr
Stars: ✭ 20 (-51.22%)
Mutual labels:  gwt
ForgE
Simple clone of RPG maker using LibGdx
Stars: ✭ 17 (-58.54%)
Mutual labels:  libgdx
FFmpeg-iOS-build-script
iOS平台编译FFmpeg的脚本,可能包含多个FFmpeg版本,不同版本可能支持不同的第三方库等
Stars: ✭ 17 (-58.54%)
Mutual labels:  freetype
GDX-lazy-font
auto self-generate BitmapFont for libgdx 1.5.0 +
Stars: ✭ 26 (-36.59%)
Mutual labels:  libgdx
DoubleHelix
A live wallpaper and daydream for Android featuring stylized glassy-looking DNA structures
Stars: ✭ 86 (+109.76%)
Mutual labels:  libgdx
pathfinding
Java pathfinding framework.
Stars: ✭ 94 (+129.27%)
Mutual labels:  libgdx
pixelwheels
A top-down retro racing game for PC (Linux, macOS, Windows) and Android.
Stars: ✭ 315 (+668.29%)
Mutual labels:  libgdx
webfx
A JavaFX application transpiler. Write your Web Application in JavaFX and WebFX will transpile it in pure JS.
Stars: ✭ 210 (+412.2%)
Mutual labels:  gwt
Koru
A 2D multiplayer sandbox game.
Stars: ✭ 78 (+90.24%)
Mutual labels:  libgdx
kickoff
Open Kick-Off is a fun rewriting attempt of the cult football game Kick Off 2 designed by Dino Dini and released in 1990 by Anco for the Atari ST and the Commodore Amiga. It is written in Java with the help of libGDX.
Stars: ✭ 32 (-21.95%)
Mutual labels:  libgdx
j4ts
Core Java APIs for TypeScript / JavaScript / JSweet
Stars: ✭ 92 (+124.39%)
Mutual labels:  gwt
Tehreer-Android
Standalone text engine for Android aimed to be free from platform limitations
Stars: ✭ 61 (+48.78%)
Mutual labels:  freetype
gdx-sqlite
A cross-platform extension for database handling in Libgdx
Stars: ✭ 61 (+48.78%)
Mutual labels:  libgdx
picocog
A tiny code generation library (< 8 KB) written in Java, useful for any purpose, but ideal for JSR-269
Stars: ✭ 82 (+100%)
Mutual labels:  gwt
domino-jackson
Jackson with Annotation processing
Stars: ✭ 46 (+12.2%)
Mutual labels:  gwt
omo
Kotlin port with changes and improvements for omo originally by ForeignGuyMike
Stars: ✭ 22 (-46.34%)
Mutual labels:  libgdx
WurfelEngineSDK
Isometric game engine. Open world, block/voxel based and sprite rendering.
Stars: ✭ 96 (+134.15%)
Mutual labels:  libgdx
bialjam17
💫 The game that won the BialJam'17 event
Stars: ✭ 55 (+34.15%)
Mutual labels:  libgdx

gdx-freetype-gwt

You ever wanted to use freetype on the web version of your game but couldn't? Now you can!

Versions

You have to use a matching libGDX and gdx-freetype-gwt version. See this table for compatibility.

libGDX gdx-freetype-gwt Note
1.9.11-SNAPSHOT 1.9.11-SNAPSHOT
1.9.10 1.9.10.1 Fixes #9
1.9.10 1.9.10 Don't use. Use 1.9.10.1 instead

How-To

  1. Go to your GdxDefinition.gwt.xml in your html subproject

Add

<inherits name="com.badlogic.gdx.graphics.g2d.freetype.freetype-gwt" />

after

<inherits name='com.badlogic.gdx.backends.gdx_backends_gwt' />

  1. Change your build.gradle of the html subproject

Add

 implementation "com.github.intrigus.gdx-freetype-gwt:gdx-freetype-gwt:$version"
 implementation "com.github.intrigus.gdx-freetype-gwt:gdx-freetype-gwt:$version:sources"
  1. Modify your HtmlLauncher.java (or if it's not named so, modify the class in your html project that extends GwtApplication)

Add

@Override
public void onModuleLoad () {
	FreetypeInjector.inject(new OnCompletion() {
		public void run () {
			// Replace HtmlLauncher with the class name
			// If your class is called FooBar.java than the line should be FooBar.super.onModuleLoad();
			HtmlLauncher.super.onModuleLoad();
		}
	});
}
  1. Profit and Enjoy

Note

If gradle fails to resolve the dependency this most likely means that there no matching gdx-freetype-gwt version has been published.

You should try previous versions since freetype is generally updated rarely.

In any case open an issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].