topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 8:25 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Dina: Ubuntu & other Linux distros dropping support for bitmap fonts  (Read 8902 times)

tartley

  • Participant
  • Joined in 2013
  • *
  • Posts: 10
    • View Profile
    • Donate to Member
A component used in Linux font rendering called "Pango" has intentionally dropped support for bitmap font formats.
See their issue thread about it here for details of why: https://gitlab.gnome...OME/pango/issues/386
Short version is, they want to delete a lot of nasty old code and use some other component, which will allow them to get past some otherwise unsolvable problems. Unfortunately bitmap support is lost in this new design.

This version of Pango is making its way into Linux distributions like Ubuntu "Focal" (for release March 2020) I think it is already released in Arch.
The upshot is all bitmap fonts appear as 'tofu' (boxes of hex digits).

I filed a bug against Ubuntu's Focal release: https://bugs.launchp...ango1.0/+bug/1861340
and I chatted with Canonical staff (I'm a Canonical employee) who told me there isn't much they can do. They don't have the resources available to do much other than go along with whatever the upstream Pango devs decide to do.

All hope is not lost for Linux Dina users! They will still support bitmaps that are packaged up as a "Vector format which contains embedded bitmaps." People report some success converting other bitmap fonts using various tools. I say "some" success, because bitmap font users are upset that the output has ugly problems such as such as spacing between characters, and everyone else doesn't really care, which is saddening. But in my experiments (below), these problems didn't manifest for Dina, possibly because it is monospace.

I have tried:

1. GUI app FontForge. I tried installing this to do the conversion on Dina, I infer from the conversation linked above that one needs to use the dialog produced by the 'File / generate' menu option, but I am totally unable to understand the UI of its many dozens of options.

2. Command line app fonttosfnt. Using an invocation like:
    fonttosfnt -v -r -b -c -g 2 -m 2 -o DinaR.otb DinaR.fon

I then did my normal font install process (copy the resulting otb file to my ~/.fonts/dina directory, and ran 'fc-cache -f')

This produced a useable Dina font! However it isn't quite right. Only two of the smaller sizes are visible, and the 'regular' font seems significantly heavier than I expect, as though it were 'bold' and the bold were 'double bold'. I don't yet know why. I just realized I'm only using v2.92 of Dina, I'll try again with the latest release (v2.93) and report back any successes.

Also, I tried an identical fonttosfnt invocation on Dina's BDF files, but that gives me an error "Couldn't select character map: 6".

Fare thee well, fellow bitmap officionados,

tartley

  • Participant
  • Joined in 2013
  • *
  • Posts: 10
    • View Profile
    • Donate to Member
Re: Dina: Ubuntu & other Linux distros dropping support for bitmap fonts
« Reply #1 on: February 05, 2020, 11:57 AM »
Tried fonttosfnt again with Dina v2.93, same results. Smallest size is available (and looks perfect.) Next size up is available, but looks too bold. No other sizes are available.

I tried just installing the output I get from converting DinaR.fon (instead of from all four files.) I expected this to give me the "regular" font in all sizes. Instead it gave me regular, italic, bold, and bold italic, all in size 6. This sounds like a clue that I don't understand what I'm doing.
« Last Edit: February 05, 2020, 12:31 PM by tartley »

tartley

  • Participant
  • Joined in 2013
  • *
  • Posts: 10
    • View Profile
    • Donate to Member
Re: Dina: Ubuntu & other Linux distros dropping support for bitmap fonts
« Reply #2 on: February 05, 2020, 12:30 PM »
Tried using GUI app FontForge, using the instructions in this comment:
https://gitlab.gnome...sues/386#note_570411

UPDATE: All Dina characters come out invisible in font selection dialogs, but if you click around blindly to select a Dina font, then everything displays just fine in gnome-terminal. (this behavior seems to apply regardless if I run fontforge on the Dina?.fon files, or the BDFs.)

Hooray, a victory! This is the best option as far as I can tell.

UPDATE2: I posted the output of my conversion here: https://www.tartley.com/dina-as-otf
« Last Edit: February 07, 2020, 02:08 PM by tartley »

tartley

  • Participant
  • Joined in 2013
  • *
  • Posts: 10
    • View Profile
    • Donate to Member
Re: Dina: Ubuntu & other Linux distros dropping support for bitmap fonts
« Reply #3 on: February 05, 2020, 01:28 PM »
Using somebody's TTF conversion of Dina from here works pretty well:
https://sites.google...ckard234/filecabinet

Problems are:
* It's a version of Dina from March 2010
* Although Dina shows up fine in my terminal, at all sizes, with italics and bold, for some reason the font is invisible in font-selection dialogs, so you have to click blindly on empty spaces to select it.

That makes me want to re-check my output from fontforge, above. Maybe that was blank in the font selection dialog but would have rendered ok in my terminal app? to be continued...

tartley

  • Participant
  • Joined in 2013
  • *
  • Posts: 10
    • View Profile
    • Donate to Member
Re: Dina: Ubuntu & other Linux distros dropping support for bitmap fonts
« Reply #4 on: February 05, 2020, 02:02 PM »
> this makes me want to re-check my output from fontforge...

YES! Done, and the fontforge output is visible in gnome-terminal, even though it looks invisible in font selection dialogs. Not ideal, but workable. I updated my fontforge post above to reflect what's actually going on.

Dina on Linux is BACK! :-)

« Last Edit: February 05, 2020, 02:08 PM by tartley »

tartley

  • Participant
  • Joined in 2013
  • *
  • Posts: 10
    • View Profile
    • Donate to Member
Re: Dina: Ubuntu & other Linux distros dropping support for bitmap fonts
« Reply #5 on: February 05, 2020, 04:21 PM »
The results of my conversion, Dina as an OTF, are posted here: https://www.tartley.com/dina-as-otf


Jibz

  • Moderator
  • Joined in 2005
  • *****
  • Posts: 1,187
    • View Profile
    • Donate to Member
Re: Dina: Ubuntu & other Linux distros dropping support for bitmap fonts
« Reply #6 on: February 07, 2020, 01:50 PM »
Thank you for your investigation and letting us all know!  :-*

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Dina: Ubuntu & other Linux distros dropping support for bitmap fonts
« Reply #7 on: February 07, 2020, 01:54 PM »
 :up: :up: