Opened 2 years ago

Closed 2 years ago

#18253 closed bug (fixed)

Webfont loading is inconsistent

Reported by: dsizzle Owned by: pulkomandy
Priority: normal Milestone: R1/beta5
Component: Kits/Web Kit Version: R1/beta5
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I haven't dug into the potential differences yet but the new webfont loading is inconsistent - some seem to work fine and others don't, and even the same font might load on some and not others.

Attachments (3)

webfont03.png (86.9 KB ) - added by dsizzle 2 years ago.
lato font -not- working
webfont02.png (618.4 KB ) - added by dsizzle 2 years ago.
lato font -working-
webfont04.png (115.9 KB ) - added by dsizzle 2 years ago.
some working, some not

Download all attachments as: .zip

Change History (9)

by dsizzle, 2 years ago

Attachment: webfont03.png added

lato font -not- working

by dsizzle, 2 years ago

Attachment: webfont02.png added

lato font -working-

by dsizzle, 2 years ago

Attachment: webfont04.png added

some working, some not

comment:1 by dsizzle, 2 years ago

HaikuWebKit 1.9.3

WebKit 615.1.15

hrev 56761, x86_64

VirtualBoxVM

Last edited 2 years ago by dsizzle (previous) (diff)

comment:2 by waddlesplash, 2 years ago

Component: - GeneralKits/Web Kit
Keywords: font webfont webpositive webkit bfont removed
Owner: changed from nobody to pulkomandy
Platform: x86-64All

comment:3 by pulkomandy, 2 years ago

When reporting problems with the web browser, it's always useful to include the URLs used. Copying them out from screenshot isn't very fun :D (it's OK in this case, they are short enough)

comment:4 by dsizzle, 2 years ago

I meant to do that and then forgot:

http://www.highteaphotography.com <-- "Lato" font works fine

http://www.decscroll.com <-- "Felipa" font works, "Alegreya" does not

http://www.webfont-test.com <-- no fonts seem to work

incidentally, fonts.google.com says Web+ is an incompatible browser. I assume this could be due to the Webkit version or something similar? They only list Chrome, Firefox, and Safari as compatible, but Opera works fine.

Last edited 2 years ago by dsizzle (previous) (diff)

comment:5 by madmax, 2 years ago

https://github.com/haiku/haikuwebkit/pull/25/files

We were only accepting truetype, and at least alegreya comes as woff only. That is, in the user-agent dependent css provided to WebPositive. If you use curl's UA it is truetype. Thank you, google.

Incidentally, just changing the user-agent loads fonts.google.com, thank you, google. But you get js errors later. Maybe the js is also user-agent dependent and we have to guess another one, or maybe they really need something we don't have yet.

Didn't check what format the ones in webfont-test come, but I tested a pair of them and they now work.

comment:6 by pulkomandy, 2 years ago

Milestone: UnscheduledR1/beta5
Resolution: fixed
Status: newclosed

Will be fixed in next HaikuWebKit release.

Note: See TracTickets for help on using tickets.