Extend the built-in PHP GD fonts

I like the built-in fonts for GD, they're small, fit tidily in the pixel grid, and come in a range of useful sizes.

But they only support the 32-255 character range.

Is it possible to extend these fonts in any way? For instance, I want to allow Japanese characters. Using fullwidth characters I'd want to produce something like this (from Wikipedia)

Is there any way to extend the built-in font like this? Or alternatively, is there a font available that is the same as the built-in one but with support for more characters? Any TTF font I've tried to use results in antialiasing, which is disastrous on palette-based images...

Answers


According to the doc, you can disable antialiasing for TTF fonts by using the negative of a color index for the color parameter of the imagettftext function.


Need Your Help

Specifying index at scale in firebase

javascript firebase firebase-security firebase-realtime-database

Currently I am trying to orderByChild see some sample data below.

Intro class C# for loop issue

c# visual-studio-2015

I'm working on the following two problems for my intro level C# course. I've completed problem 3, but am having trouble with problem 4. The issue is that the total is not coming out correct, as it ...