Opened 2 years ago

Last modified 12 months ago

#13361 new bug

WebPositive: @fonta-face not working

Reported by: dsjonny Owned by: pulkomandy
Priority: normal Milestone: Unscheduled
Component: Applications/WebPositive Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Hi!

I have tried some nightlies until hrev50967 and I found that the CSS @font-face support is not working.

For example please check this site: https://www.w3schools.com/howto/howto_google_fonts.asp

Change History (4)

comment:1 Changed 2 years ago by pulkomandy

To be precise, what doesn't work is downloading a font and using it. If you have the font installed in Haiku, then it will work. This is a limitation of the BeAPI: BFont does not allow to load a font from a file, only query already installed fonts. We should fix that on app_server side before WebKit can make use of the feature. For now, as a workaround, it is suggested to install the fonts manually to Haiku so you can see them on websites.

comment:2 Changed 2 years ago by dsjonny

There was a same ticket before, and it was fixed: #8950

comment:3 Changed 12 months ago by achmafooma

It's definitely not working...the site in the ticket description illustrates the problem nicely. I am running into the same problem on my website, which uses Bootstrap and the included Glyphicons font set. Items using the Glyphicons font do not display properly.

Not sure if we should reopen #8950 or move forward on this ticket, but this should probably be fixed since the use of webfonts is pretty widespread now.

comment:4 Changed 12 months ago by pulkomandy

That ticket was closed without reason, but let's use this new one. As stated, this need app_server changes, right now it is not possible to load fonts into app_server except by installing them in the appropriate directories. As a workaround we could package some often used fonts with haiku (for the beta, but not for the nightlies, I'd say)

Note: See TracTickets for help on using tickets.