#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 22 months ago.
lato font -not- working
webfont02.png (618.4 KB ) - added by dsizzle 22 months ago.
lato font -working-
webfont04.png (115.9 KB ) - added by dsizzle 22 months ago.
some working, some not

Download all attachments as: .zip

Change History (9)

by dsizzle, 22 months ago

Attachment: webfont03.png added

lato font -not- working

by dsizzle, 22 months ago

Attachment: webfont02.png added

lato font -working-

by dsizzle, 22 months ago

Attachment: webfont04.png added

some working, some not

comment:1 by dsizzle, 22 months ago

HaikuWebKit 1.9.3

WebKit 615.1.15

hrev 56761, x86_64

VirtualBoxVM

Last edited 22 months ago by dsizzle (previous) (diff)

comment:2 by waddlesplash, 22 months 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, 21 months 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, 21 months 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 21 months ago by dsizzle (previous) (diff)

comment:5 by madmax, 21 months 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, 21 months ago

Milestone: UnscheduledR1/beta5
Resolution: fixed
Status: newclosed

Will be fixed in next HaikuWebKit release.

Note: See TracTickets for help on using tickets.