Opened 22 months ago
Closed 21 months 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)
Change History (9)
by , 22 months ago
Attachment: | webfont03.png added |
---|
comment:1 by , 22 months ago
HaikuWebKit 1.9.3 WebKit 615.1.15 hrev 56761, x86_64 VirtualBoxVM
comment:2 by , 22 months ago
Component: | - General → Kits/Web Kit |
---|---|
Keywords: | font webfont webpositive webkit bfont removed |
Owner: | changed from | to
Platform: | x86-64 → All |
comment:3 by , 22 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 , 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.
comment:5 by , 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 , 21 months ago
Milestone: | Unscheduled → R1/beta5 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Will be fixed in next HaikuWebKit release.
lato font -not- working