Opened 3 years ago

Last modified 2 years ago

#13096 assigned bug

fallback font problem

Reported by: michel Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Servers/app_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

I upgraded to hrev 50714. On rebooting all my system fonts had been reset to Bitstream Charter.

I "fixed" it by manually downloading Noto and setting my fonts to that, as I believe this will be the new standard, but shouldn't noto be listed as a dependency somewhere?

Attachments (1)

IMG_20170203_183337657_HDR.jpg (218.8 KB) - added by KapiX 3 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 3 years ago by KapiX

If you are bored and want to have some fun please do this:

  1. Put some fonts in non-packaged/data/fonts.
  2. Set them in appearance panel.
  3. Set one of them in Terminal.
  4. Reboot to make sure everything propagated properly :)
  5. Remove the folder.
  6. ???
  7. Definitely NOT PROFIT.

Terminal won't start - a bunch of divisions by 0, since fFontWidth and fFontHeight are initialized to 0, and there is no file to take the measurements from. Menus don't open (or rather they do open, but all that appears is just a 2x2 rect), Appearance panel is unusable, and Screenshot takes the whole screen so your only option is hard reset.

I wonder if I could make the whole install unusable if I didn't put the folder back before rebooting. It's amazing how easy it was to break everything so badly.

Of course, it's definitely not something you should do, but I can imagine some people having bad friends, or just bad luck (for example removing the folder by mistake or used font files getting corrupted).

I wanted to make a patch for terminal, but this should be fixed on a lower level.

I am attaching a screenshot.

Changed 3 years ago by KapiX

comment:2 Changed 3 years ago by pulkomandy

It was already discussed when DejaVu was moved to a package. Now we switch the font to Noto and the problem pops again.

The situation for app_server is very simple: there is one fallback font, and it is VL-Gothic. The Haiku package should depend on the VL-Gothic one, so that font is always available. Or, if we decide Noto is the new fallback, we adjust app_server to use Noto as the fallback font, and then, the Haiku package could depend on the Noto one.

When that is done, we can also remove the old "bitstream charter" font which for some reason is still bundled with Haiku. It should also be a separate package.

comment:3 Changed 2 years ago by diver

Component: - GeneralServers/app_server
Owner: changed from nobody to axeld

comment:4 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.