Fonts wit non-ascii

A few of other people are doing translations (Spanish, German) and it would be nice if there was a unified font with all that chars so they can be released.

If you add chars to the fonts using http://www.pentacom.jp/pentacom/bitfontmaker2/, it would be nice if you post the changed font so others and use it and build the char set.

1 Like

From what I saw I think its only one font that doesn’t have all the needed chars, at least for Spanish: makoFontBold.ttf

I haven’t edited a font before, if I succeed will post it here.

Yes, that’s the speech font and it lacks the accents I need for Italian.

How do we plug the bitmapfont in? The tool gives a text representation, but I thought the game uses the .ttf font now.

Never mind, I saw now that there’s a “build font” button :man_facepalming: good, I’ll work on accents then.

I’ll keep you posted.

Go to the website Ron gave us, click on “data import-export”
image and copy the text you find down here:

Font details

{“33”:[12,12,12,12,12,12,12,12,12,0,12,12,0,0,0,0],“34”:[108,108,108,0,0,0,0,0,0,0,0,0,0,0,0,0],“35”:[0,816,816,4092,4092,816,816,4092,4092,816,816,0,0,0,0,0],“36”:[32,112,248,428,44,120,240,416,428,248,112,32,0,0,0,0],“37”:[0,192,204,236,96,96,112,48,48,440,408,24,0,0,0,0],“38”:[112,248,396,396,252,120,112,1784,1996,908,2040,1776,0,0,0,0],“39”:[12,12,12,0,0,0,0,0,0,0,0,0,0,0,0,0],“40”:[96,48,24,24,12,12,12,12,24,24,48,96,0,0,0,0],“41”:[12,24,48,48,96,96,96,96,48,48,24,12,0,0,0,0],“42”:[876,504,240,504,876,0,0,0,0,0,0,0,0,0,0,0],“43”:[0,0,96,96,96,1020,1020,96,96,96,0,0,0,0,0,0],“44”:[0,0,0,0,0,0,0,0,0,0,12,12,8,4,0,0],“45”:[0,0,0,0,0,0,124,124,0,0,0,0,0,0,0,0],“46”:[0,0,0,0,0,0,0,0,0,0,12,12,0,0,0,0],“47”:[384,384,192,192,96,96,48,48,24,24,12,12,0,0,0,0],“48”:[112,248,216,396,396,396,396,396,396,216,248,112,0,0,0,0],“49”:[112,120,124,108,96,96,96,96,96,96,96,96,0,0,0,0],“50”:[240,504,924,780,896,448,224,112,56,28,1020,1020,0,0,0,0],“51”:[240,504,924,780,896,496,496,896,780,924,504,240,0,0,0,0],“52”:[448,480,480,432,432,408,408,1020,1020,384,384,384,0,0,0,0],“53”:[508,508,12,12,124,252,448,384,384,460,252,120,0,0,0,0],“54”:[496,1016,796,12,252,508,924,780,780,924,504,240,0,0,0,0],“55”:[2044,2044,1792,896,896,448,448,224,224,112,112,56,0,0,0,0],“56”:[112,248,476,396,476,248,248,476,396,476,248,112,0,0,0,0],“57”:[112,248,396,396,396,504,496,384,448,224,112,48,0,0,0,0],“58”:[0,0,0,12,12,0,0,0,12,12,0,0,0,0,0,0],“59”:[0,0,0,12,12,0,0,0,12,12,8,4,0,0,0,0],“60”:[0,0,0,0,896,480,120,28,120,480,896,0,0,0,0,0],“61”:[0,0,0,0,0,252,252,0,252,252,0,0,0,0,0,0],“62”:[0,0,0,0,28,120,480,896,480,120,28,0,0,0,0,0],“63”:[240,504,924,780,768,896,448,224,96,0,96,96,0,0,0,0],“64”:[0,0,0,496,1016,1820,1612,1708,1996,1820,1016,496,0,0,0,0],“65”:[448,448,992,864,864,1584,1584,4088,4088,3096,6156,6156,0,0,0,0],“66”:[252,508,908,780,908,508,508,908,780,908,508,252,0,0,0,0],“67”:[960,4080,3128,24,12,12,12,12,24,3128,4080,960,0,0,0,0],“68”:[124,508,908,780,1548,1548,1548,1548,780,908,508,124,0,0,0,0],“69”:[508,508,12,12,12,508,508,12,12,12,508,508,0,0,0,0],“70”:[508,508,12,12,12,508,508,12,12,12,12,12,0,0,0,0],“71”:[960,4080,3128,24,12,7948,7948,6156,6168,7224,4080,960,0,0,0,0],“72”:[1548,1548,1548,1548,1548,2044,2044,1548,1548,1548,1548,1548,0,0,0,0],“73”:[12,12,12,12,12,12,12,12,12,12,12,12,0,0,0,0],“74”:[384,384,384,384,384,384,384,384,396,476,248,112,0,0,0,0],“75”:[780,908,460,236,124,60,60,124,236,460,908,780,0,0,0,0],“76”:[12,12,12,12,12,12,12,12,12,12,508,508,0,0,0,0],“77”:[28700,30780,30780,27756,27756,27756,26316,26316,26316,25484,25484,24844,0,0,0,0],“78”:[1548,1548,1564,1596,1660,1772,1996,1932,1804,1548,1548,1548,0,0,0,0],“79”:[480,1008,1848,1560,3084,3084,3084,3084,1560,1848,1008,480,0,0,0,0],“80”:[124,252,460,396,460,252,124,12,12,12,12,12,0,0,0,0],“81”:[480,1008,1560,1560,3084,3084,3276,3532,1944,1816,4080,3552,0,0,0,0],“82”:[124,252,460,396,460,252,124,236,460,396,908,780,0,0,0,0],“83”:[240,504,780,780,28,248,496,896,780,780,504,240,0,0,0,0],“84”:[1020,1020,96,96,96,96,96,96,96,96,96,96,0,0,0,0],“85”:[3084,3084,3084,3084,3084,3084,3084,3084,1560,1560,1008,480,0,0,0,0],“86”:[1548,1548,1548,792,792,792,432,432,432,224,224,64,0,0,0,0],“87”:[49932,49932,49932,51084,28632,27864,27864,31992,14448,12336,12336,12336,0,0,0,0],“88”:[780,924,408,240,240,96,96,240,240,408,924,780,0,0,0,0],“89”:[3084,3612,1560,816,1008,480,192,192,192,192,192,192,0,0,0,0],“90”:[1020,1020,768,384,192,96,48,24,12,12,1020,1020,0,0,0,0],“91”:[60,60,12,12,12,12,12,12,12,12,60,60,0,0,0,0],“92”:[12,12,24,24,48,48,96,96,192,192,384,384,0,0,0,0],“93”:[60,60,48,48,48,48,48,48,48,48,60,60,0,0,0,0],“94”:[32,112,248,476,396,0,0,0,0,0,0,0,0,0,0,0],“95”:[0,0,0,0,0,0,0,0,0,0,0,0,1020,1020,0,0],“96”:[12,24,48,0,0,0,0,0,0,0,0,0,0,0,0,0],“97”:[0,0,0,248,508,396,480,504,412,396,508,888,0,0,0,0],“98”:[12,12,12,236,508,924,780,780,780,924,508,236,0,0,0,0],“99”:[0,0,0,240,504,412,12,12,12,412,504,240,0,0,0,0],“100”:[768,768,768,880,1016,924,780,780,780,924,1016,880,0,0,0,0],“101”:[0,0,0,240,504,780,1020,1020,12,780,504,240,0,0,0,0],“102”:[240,504,408,24,24,124,124,24,24,24,24,24,0,0,0,0],“103”:[0,0,0,880,1016,924,780,780,780,924,1016,880,768,908,504,240],“104”:[12,12,12,236,508,924,780,780,780,780,780,780,0,0,0,0],“105”:[12,12,0,12,12,12,12,12,12,12,12,12,0,0,0,0],“106”:[24,24,0,24,24,24,24,24,24,24,24,24,24,27,31,14],“107”:[12,12,396,460,236,124,60,124,108,204,460,396,0,0,0,0],“108”:[12,12,12,12,12,12,12,12,12,12,12,12,0,0,0,0],“109”:[0,0,0,1644,4092,3548,3276,3276,3276,3276,3276,3276,0,0,0,0],“110”:[0,0,0,236,508,412,396,396,396,396,396,396,0,0,0,0],“111”:[0,0,0,240,504,924,780,780,780,924,504,240,0,0,0,0],“112”:[0,0,0,236,508,924,780,780,780,924,508,236,12,12,12,12],“113”:[0,0,0,880,1016,924,780,780,780,924,1016,880,768,768,768,768],“114”:[0,0,0,236,508,412,12,12,12,12,12,12,0,0,0,0],“115”:[0,0,0,248,508,396,60,248,448,396,508,248,0,0,0,0],“116”:[24,24,24,124,124,24,24,24,24,216,248,112,0,0,0,0],“117”:[0,0,0,396,396,396,396,396,396,460,1020,888,0,0,0,0],“118”:[0,0,0,780,780,924,408,408,240,240,96,96,0,0,0,0],“119”:[0,0,0,3084,3084,3084,3276,1752,1752,2040,1008,816,0,0,0,0],“120”:[0,0,0,396,396,476,248,112,248,476,396,396,0,0,0,0],“121”:[0,0,0,780,780,780,780,408,408,240,240,96,96,48,56,24],“122”:[0,0,0,508,508,448,224,112,56,28,508,508,0,0,0,0],“123”:[96,48,24,24,24,12,12,24,24,24,48,96,0,0,0,0],“124”:[12,12,12,12,12,12,12,12,12,12,12,12,12,0,0,0],“125”:[12,24,48,48,48,96,96,48,48,48,24,12,0,0,0,0],“126”:[0,152,252,100,0,0,0,0,0,0,0,0,0,0,0,0],“161”:[12,12,0,12,12,12,12,12,12,12,12,12,12,0,0,0],“162”:[0,192,1008,2040,1756,204,204,204,1756,2040,1008,192,0,0,0,0],“163”:[496,1016,792,24,24,252,252,24,24,24,1020,508,0,0,0,0],“164”:[0,0,0,396,508,248,216,248,508,396,0,0,0,0,0,0],“165”:[3084,3612,1560,816,1008,480,192,1008,192,1008,192,192,0,0,0,0],“166”:[12,12,12,12,12,0,0,12,12,12,12,12,0,0,0,0],“167”:[248,508,396,124,248,396,396,248,496,396,508,248,0,0,0,0],“168”:[0,204,204,0,0,0,0,0,0,0,0,0,0,0,0,0],“169”:[0,0,0,496,1016,1820,1740,1580,1740,1820,1016,496,0,0,0,0],“178”:[24,36,16,8,60,0,0,0,0,0,0,0,0,0,0,0],“179”:[28,32,24,32,28,0,0,0,0,0,0,0,0,0,0,0],“181”:[0,0,0,396,396,396,396,396,396,460,1020,892,12,12,12,12],“182”:[2032,760,760,760,760,752,704,704,704,704,704,704,0,0,0,0],“192”:[96,192,0,224,224,432,432,792,1016,2044,1548,1548,0,0,0,0],“193”:[192,96,0,224,224,432,432,792,1016,2044,1548,1548,0,0,0,0],“200”:[48,96,508,508,12,12,508,508,12,12,508,508,0,0,0,0],“201”:[96,48,508,508,12,12,508,508,12,12,508,508,0,0,0,0],“204”:[6,12,0,12,12,12,12,12,12,12,12,12,0,0,0,0],“205”:[24,12,0,12,12,12,12,12,12,12,12,12,0,0,0,0],“210”:[96,192,0,496,1016,1820,1548,1548,1548,1820,1016,496,0,0,0,0],“211”:[192,96,0,496,1016,1820,1548,1548,1548,1820,1016,496,0,0,0,0],“224”:[48,96,0,248,508,396,480,504,412,396,508,888,0,0,0,0],“225”:[96,48,0,248,508,396,480,504,412,396,508,888,0,0,0,0],“232”:[48,96,0,240,504,780,1020,1020,12,780,504,240,0,0,0,0],“233”:[192,96,0,240,504,780,1020,1020,12,780,504,240,0,0,0,0],“236”:[6,12,0,12,12,12,12,12,12,12,12,12,0,0,0,0],“237”:[24,12,0,12,12,12,12,12,12,12,12,12,0,0,0,0],“242”:[48,96,0,240,504,924,780,780,780,924,504,240,0,0,0,0],“243”:[192,96,0,240,504,924,780,780,780,924,504,240,0,0,0,0],“246”:[0,144,0,240,504,924,780,780,780,924,504,240,0,0,0,0],“249”:[48,96,0,396,396,396,396,396,396,460,1020,888,0,0,0,0],“250”:[96,48,0,396,396,396,396,396,396,460,1020,888,0,0,0,0],“8220”:[0,40,20,20,0,0,0,0,0,0,0,0,0,0,0,0],“8221”:[0,40,40,20,0,0,0,0,0,0,0,0,0,0,0,0],“8364”:[0,480,1008,824,24,252,24,252,24,824,1008,480,0,0,0,0],“8482”:[0,2784,3648,3648,2624,0,0,0,0,0,0,0,0,0,0,0],“9679”:[0,0,0,0,64,192,448,960,448,192,64,0,0,0,0,0],“name”:“makoFontBold2”,“copy”:“Anonymous”,“letterspace”:“64”,“basefont_size”:“512”,“basefont_left”:“62”,“basefont_top”:“0”,“basefont”:“Arial”,“basefont2”:""}

Then click import and you’ll have my current version. I added accents for all vowels, so for Spanish you should add the reverse ? and ! and the ñ, I think.

1 Like

Yes and the inverted question mark: ¿you don’t use that in Italian, right?

Anyway I tried importing it into bitfontmaker2 with no luck, maybe if you upload the new ttf file?

I created a google drive folder
https://drive.google.com/drive/folders/1fr9ylB8w8fs_mHDkRDb7U6AZfsMeoV62?usp=sharing

so if you make changes you can update the file in here and we all get the new version :+1:

2 Likes

I just updated the file with the lower case ñ and the inverted question mark.

2 Likes

I corrected the font so it can receive most special chars (the uppercase chars were starting too close to the top, so there was no space for accentuation like in Ã, Á, Ô, etc). I also added all missing special chars for portuguese and added a few other chars to the best of my abilities.

Data export from BitFontMaker2:

TTF Font working for most languages (got to rename it to MakeFontBold.ttf if you wanna try it out):

2 Likes

Sorry, I put the Data in a txt now.

I added “Plus” in the name of the ttf file because I made a lot of small changes in the font and didnt want to overwrite Guga’s work, in case my small modifications are not welcome.

But now it works for portuguese and most languages.

Please rename it removing the ‘Plus’ from the filename if you wish to overwrite the old font.

I redesigned the accented uppercase to be smaller. I don’t like it that much, but I’m not a fan of shifting the letters below the line, as you get a strange alignment in mixed case.

image
vs
image

The question is: how often do you have special uppercase letters in Portuguese?

In Italian, there are usually only two cases: when a sentence begins with the verb “to be”, but it’s a single “È”, or when someone is shouting :stuck_out_tongue: so the whole text is in uppercase.

While it’s way more common to have normal uppercases for sentences. So I’d be more inclined to have a bad looking accented letter (e.g. a shout that says “I won’t do it” image ) than seeing the misalignment in every sentence (image)

But… it’s only my opinion, I’d like to know what others think.

Anyway, great job on all other characters!

3 Likes

Ok, I think that now I corrected everything. I overwrote my TTF and txt files in your folder. Could you please retest it and let me know what you think?

In Italian, there are usually only two cases: when a sentence begins with the verb “to be”, but it’s a single “È”, or when someone is shouting :stuck_out_tongue: so the whole text is in uppercase.

Almost the same in portuguese, mostly the verb “to be” (a single “É”) and uppercase “shouting”. But, still, there are many other cases, like words that starts with a vogal with an accent because accentuation rules of tonic syllables, etc.

I think now it’s better than it was, try it out and see. I also improved the @, registered, copyright and other chars.

I suppose the game uses only the final TTF so I would rather edit just the TTF and add “one pixel” on top to make space for the diacritic marks. We, Czechs, use them a lot (ěščřýžýáíéďťňúů), not to mention other neighbouring nations (śćźŕĺ)
I’m just not sure what will happen with the changed fonts in Delores engine…?

DroidSansMono.ttf - ok
makoFontPlusBold.ttf - incomplete
MargatroidGrotesque.ttf - incomplete
NokiaSmallBold.ttf - incomplete
Savior1.ttf - incomplete
SpecialElite.ttf - ok

If you don’t mind I’ll look into it tomorrow.

I’m not sure why the font height can’t be extended. Delores use FreeType to do all font rendering. If the height can’t be extended, that probably just a limitation of the web-based font editor.

I don’t expect to crash the app or something like that but I suspect it might look slightly differently when the properties (ascender, etc.) of the font change.

Anyway, here’s my revision:

It’s OTF but I hope it should not be a problem.

Changes:

  • all glyphs moved “two pixels” up to match font baseline
  • ascender moved “one pixel” up
  • removed many redundant points
  • modified glyphs: @ 5 germandlbs caron acute macroncombining ogonek cedilla dieresis hungarumlaut etc.
  • all characters with diacritic marks converted to composite characters (so they can be easily changed)
  • both Latin Supplement and Latin Extended-A are filled (but not quite completed)

To do:

  • diacritic marks in some composite glyphs need to be slightly moved (it’s not pixel perfect)
  • add one more pixel below the base line to create some space for cedilla, ogonek, etc.?
  • Ohungarumlaut is completely off
  • Lslash is very temporary =)
  • etc.

Please somebody try to test it within the engine because I can’t do that today.

2 Likes

Is there a reason it can’t be a .ttf (or converted to one)?

It can be converted using an online conversion tool, i.e.
https://convertio.co/en/otf-ttf/
https://cloudconvert.com/otf-to-ttf

While I’m pretty sure FreeType can open .otf files, the Delores engine needs to “.ttf” extension to tell it what kind of file it is. It is possible that just renaming the “.otf” file with “.tff” will work. Converting the file to “.tff” is probably best since it won’t rely on a rename hack to work.

I just tried .otf files and Delores and FreeType load them just fine.

2 Likes

I’m sorry for the inconvenience…

The exact relation between OTF and TTF is still mystery for me. As far as I know OTF should just encapsulate TTF with slightly different header. I use mainly High-Logic Font Creator and it offers export to “TTF/OTF” as a single (!) format but it always adds “.otf” extension. Now I tried to convert the OTF file through Convertio and the resulting TTF is exactly the same file. I guess OTF can (but does not have to) be the same as TTF. In this case renaming to TTF work just fine. :blush:

Here’s my (hopefully) final version:

Some (about five of them) diacritical marks are still placed at half-pixel position (e.g. Abreve) but all other versions I created looked worse to me so I kept them that way. The rest should be fixed.