MediaWiki talk:Common.css: Difference between revisions
Reply to both topics |
m Re |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 8: | Line 8: | ||
: I don't have the required permissions either. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 00:41, 7 October 2024 (UTC) | : I don't have the required permissions either. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 00:41, 7 October 2024 (UTC) | ||
:: I added the requested code. Does the HEJI font want it too? [[User:FloraC|FloraC]] ([[User talk:FloraC|talk]]) 19:59, 7 October 2024 (UTC) | |||
::: Thanks for that. Sorry I didn't think about the HEJI font in advance. It's only used on [[User:Fredg999/Sandbox]] at this time but I checked it there and yes, it makes the appearance on Mac nicer and makes it match the appearance on Windows when you add it to the HEJI2Text font, too. --[[User:Cmloegcmluin|Cmloegcmluin]] ([[User talk:Cmloegcmluin|talk]]) 20:52, 7 October 2024 (UTC) | |||
:::: Right. [[User:FloraC|FloraC]] ([[User talk:FloraC|talk]]) 20:57, 7 October 2024 (UTC) | |||
== This Bravura does not work on Android == | == This Bravura does not work on Android == | ||
| Line 18: | Line 24: | ||
: I have been able to reproduce the issue on Chrome, but it works fine on Firefox (both on Android obviously). It might be a browser-specific issue, and it would require further investigating. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 00:41, 7 October 2024 (UTC) | : I have been able to reproduce the issue on Chrome, but it works fine on Firefox (both on Android obviously). It might be a browser-specific issue, and it would require further investigating. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 00:41, 7 October 2024 (UTC) | ||
:: Thanks for reproducing, and for the extra information. I investigated further and found [https://stackoverflow.com/a/22307695/23289414 this StackOverflow answer] which suggests Android Chrome has a unique problem among browsers in that it fails to download fonts unless they're used in an element present on initial render. Perhaps the <code><nowiki>{{bravura}}</nowiki></code> templates render too late, then. If that's the explanation for the problem, then we may be able to solve it by using [[MediaWiki:Common.js]] to add something hidden like the following to every page: | |||
:: <code><nowiki> | |||
$('body').append('<div style="visibility: hidden; font-family: BravuraText;">(loading BravuraText)</div>'); | |||
</nowiki></code> | |||
:: --[[User:Cmloegcmluin|Cmloegcmluin]] ([[User talk:Cmloegcmluin|talk]]) 01:50, 7 October 2024 (UTC) | |||