Giter Club home page Giter Club logo

hd-font-generator's Introduction

HD Font Generator

This tool creates HD font resource packs using installed fonts on the system. If it's supported and installed in your computer, you can use it.

To use, select the font and texture size from the dropdown boxes and click Create. A zip named using the font name and the size will be created in the directory it was started from. Add this file as a resource pack.

For command line usage, just give it a font name with spaces replaced with underscores, then the texture. A nonexistent font will use the JRE default (dialog.plain).

The generator window

Note: Every font is different, so some may look weird and require tweaking after generation, but most fonts should be fine.

Download

The generator can be downloaded from the Release page. Pick the file for your operating system.

Extract the zip or tar file to run the executable.

Options

Different options can be customized before generation. These include:

  • Font: The font family to use, pre-populated from system fonts.
  • Texture Size: The size of the texture. Limited to one of x32, x64, x128, x256, x512. Higher resolution textures will take longer to generate
  • Pack Format: The minecraft version range to generate the font for. Supports formats 1 through 7.
  • Unicode: (legacy), Generates the full extended unicode, which consists of 256 pages, each with 256 characters. Fallback font uses the gnu uniform font.
  • Parallel: Uses multiple threads to generate font bitmaps in parallel.

Development

Note: The project uses JDK 17.

Gradle Tasks

The following Gradle tasks can be used to run or build the project.

  • ./gradlew run - Runs the project with gradle
  • ./gradlew build - Build the project and package dependencies with a launch script. This is useful if you have the JDK installed already, though you have to extract it manually.
  • ./gradlew jPackageDist - Create a platform-specific archive which bundles the JRE. The unarchived build files are located in build/jpackage.

hd-font-generator's People

Contributors

killjoy1221 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hd-font-generator's Issues

Glyph Size

Hello my friend
When I output a font for minecraft 1.11-1.12.2 it outputs very small glyphs.
The intended size for the glyphs is the old Minecraft font.
5645645665456

Original font orange letters
Turquoise blue letters of the output font taken with HD Font Generate

There is no problem with the font that was used and there is a similar problem for other fonts.
I know that you can use truetype in Minecraft, but this feature was added from version 1.13.

Tahoma bold

Hi, i'm kind of a newbie to all of this, so idk where to ask and how to do stuff lol

I want to generate the Tahoma Bold font with this program, which is under the Tahoma font. I can create the Tahoma font no issues, but I can't find where/how to create one with it in bold.

Sorry if I missed something or posted this in the wrong place.

MacOS broken error and user bypass

So, whenever you download the app and run it, you'll get thrown the dreaded "hdfontgen.app" is damaged and can't be opened. You should move it to the Trash. error.
open-err
However, after looking at the content packages, I found that it's only the /Applications/hdfontgen.app/Contents/MacOS/hdfontgen file that's broken.
broken-ex-loc
However, if you run the /Applications/hdfontgen.app/Contents/runtime/Contents/Home/bin/hdfontgen file, it will open just like normal
bypass-ex-loc
This is what you'll see
working-app
working-term
The app does work too, I used Webdings as a test and it worked perfectly
working-pack
No idea why it's happening, but a fix would be helpful :)

Installed new fonts, program mostly shows Dialog.plain

I reformated my pc a couple of days ago and redownloaded my fonts i used to have, and then opened HD font generator again. It worked before installing, but after a 400 font installation I think the program got overloaded or something and now is only showing Dialog.plain on most fonts, and only loads the default windows ones

Font Fallback Stack?

Is it possible to make the font fall back to another font if the letter is not supported? I know that CSS can do it, and Minecraft does it by default.

For example, I have a font called Nihonium that I want to use for ASCII, Latin A, Latin B, and Greek, but if that is not supported in the font, I want to specify the program to use PixelM+, a Japanese pixel font, and if that isn't supported either, probably the default Unicode font for Minecraft.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.