Last modified: 2014-01-16 07:11:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60203, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58203 - Add "railway-sans" font for use on wikimania2014 wiki
Add "railway-sans" font for use on wikimania2014 wiki
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
master
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 53015
  Show dependency treegraph
 
Reported: 2013-12-09 09:46 UTC by Sam Ballard
Modified: 2014-01-16 07:11 UTC (History)
18 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Ballard 2013-12-09 09:46:10 UTC
Hey there again, 
I'm working on the design team for the wikimania 2014 wiki, could you please add railway-sans font to the wikimanaia server (wikimania2014.wikimedia.org).
The font is free use and can be found here with all webready files; http://openfontlibrary.org/en/font/railway-sans

Thanks
Comment 1 This, that and the other (TTO) 2013-12-11 00:47:02 UTC
Do you want this font made available for use in SVG files?
Comment 2 Sam Ballard 2013-12-11 09:41:31 UTC
(In reply to comment #1)
> Do you want this font made available for use in SVG files?

no, just for plain text
Comment 3 This, that and the other (TTO) 2013-12-11 11:02:01 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Do you want this font made available for use in SVG files?
> 
> no, just for plain text

So you want to use it as a CSS Web Font then? Which exact files do you want placed on the server and where would you like them to be placed?

Just to emphasise also that precision and detail in bug reports is very much appreciated :) For site requests, a developer should just be able to act on the bug report straight away without having to ask questions.
Comment 4 Sam Ballard 2013-12-13 12:42:44 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > Do you want this font made available for use in SVG files?
> > 
> > no, just for plain text
> 
> So you want to use it as a CSS Web Font then? Which exact files do you want
> placed on the server and where would you like them to be placed?
> 
> Just to emphasise also that precision and detail in bug reports is very much
> appreciated :) For site requests, a developer should just be able to act on
> the
> bug report straight away without having to ask questions.

As a CSS web font yes please.

The files can be downloaded here;
http://openfontlibrary.org/assets/downloads/railway-sans/005334257a772c915a5e70fa1f1376be/railway-sans.zip

As for where to put them; somewhere that is accessible from the CSS. I'm not certain what's best, I'd just like to be able to use this font on the wikimania 2014 wiki and I'm finding that I can't do it without the font already being on the server.

Sorry, I'm super new to web coding, if you have some advice, It would be very much appreciated, and in any case, thank you for your patience =)
Comment 5 This, that and the other (TTO) 2013-12-14 00:36:29 UTC
I think this has to be done serverside, as fonts are not in Gerrit. 

Adding Reedy (sorry for constantly adding you to these, but you're The Man)
Comment 6 Sam Reed (reedy) 2013-12-14 01:23:27 UTC
If you're not wanting it for SVG rendering or similar, there shouldn't be anything specifically that needs doing of "server administration" nature.

The "sensible" place for something like this would be in the Universal Language Selector, but it feels slightly out of scope (other fonts were added to ULS for use in English (among other) languages included OpenDyslexic which is for Dyslexic users.

Delegation with relation suitability of inclusion in ULS would need to be with the language team.


Failing that it could potentially be served from bits. This is somewhat of a unique case, so there isn't really a precedence for how to do it..
Comment 7 Gerrit Notification Bot 2013-12-15 19:04:44 UTC
Change 101674 had a related patch set uploaded by Reedy:
Add RailwaysSans font

https://gerrit.wikimedia.org/r/101674
Comment 8 Gerrit Notification Bot 2014-01-07 09:32:37 UTC
Change 101674 merged by jenkins-bot:
Add RailwaysSans font

https://gerrit.wikimedia.org/r/101674
Comment 9 Santhosh Thottingal 2014-01-07 09:34:37 UTC
(In reply to comment #8)
> Change 101674 merged by jenkins-bot:
> Add RailwaysSans font
> 
> https://gerrit.wikimedia.org/r/101674

Not adding as a font option for English language, but make it possible to define
the font in css and get the font downloaded from server.
Comment 10 Sam Ballard 2014-01-08 16:22:27 UTC
Thanks very much guys!

do you have any instructions on how to define the font in the CSS?
Comment 11 Sam Reed (reedy) 2014-01-08 16:23:51 UTC
(In reply to comment #10)
> Thanks very much guys!
> 
> do you have any instructions on how to define the font in the CSS?

You can't actually use it yet though. Based on release schedule, it should be live on the wikimania 2014 wiki on the 13th
Comment 12 This, that and the other (TTO) 2014-01-08 23:53:17 UTC
When it is ready it should appear at the URL //bits.wikimedia.org/static-current/extensions/UniversalLanguageSelector/data/fontrepo/fonts/RailwaySans/RailwaySans.EXT where EXT is one of ttf, woff or eot.
Comment 13 This, that and the other (TTO) 2014-01-15 09:17:32 UTC
Sam B: Font is now available at
//bits.wikimedia.org/static-1.23wmf10/extensions/UniversalLanguageSelector/data/fontrepo/fonts/RailwaySans/RailwaySans.EXT
where EXT is one of ttf, woff or eot

Not sure why the static-current URL I gave above doesn't work. It'd be nicer if that was available, since eventually 1.23wmf10 will be removed from the server and the font URL will need to be changed.
Comment 14 Raimond Spekking 2014-01-15 09:30:45 UTC
I tried to use it: https://wikimania2014.wikimedia.org/wiki/User:Raymond which is am 1.23wmf10 since last night.

But the font is not found (404):

GET https://bits.wikimedia.org/static-current/extensions/UniversalLanguageSelector/data/fontrepo/fonts/RailwaySans/RailwaySans.ttf
Comment 15 This, that and the other (TTO) 2014-01-15 09:41:37 UTC
Reedy seems to update the static-current symlink every Friday, so maybe we have to wait until then. If you can't wait, you can use the static-1.23wmf10 URL for now.
Comment 16 Santhosh Thottingal 2014-01-15 10:23:01 UTC
Just note that you dont need to use a specific font URL to use this font in css. ULS has webfonts feature. You just need to have fontfamily defined as RailwaySans in inline css or external css or somewhere. ULS will make sure that font get embedded. ULS will add the necessary @fontface css to the page. Eg: https://translatewiki.net/wiki/User:Santhosh.thottingal

As noted above, bits.wikimedia.org does not seem to have updated to the required version
Comment 17 This, that and the other (TTO) 2014-01-15 10:35:29 UTC
(In reply to comment #16)
> Just note that you dont need to use a specific font URL to use this font in
> css. 

I really should stop commenting on things that I don't know much about, shouldn't I? :)
Comment 18 Sam Reed (reedy) 2014-01-15 14:49:44 UTC
(In reply to comment #12)
> When it is ready it should appear at the URL
> //bits.wikimedia.org/static-current/extensions/UniversalLanguageSelector/
> data/fontrepo/fonts/RailwaySans/RailwaySans.EXT
> where EXT is one of ttf, woff or eot.

Noting that's the canonical url. In theory, it's what most Wikis are running. In practice, it's what Wikipedias are running

(In reply to comment #13)
> Sam B: Font is now available at
> //bits.wikimedia.org/static-1.23wmf10/extensions/UniversalLanguageSelector/
> data/fontrepo/fonts/RailwaySans/RailwaySans.EXT
> where EXT is one of ttf, woff or eot
> 
> Not sure why the static-current URL I gave above doesn't work. It'd be nicer
> if
> that was available, since eventually 1.23wmf10 will be removed from the
> server
> and the font URL will need to be changed.

1.23wmf10 would likely be around for the next few months, so using it in the meantime wouldn't be an issue

(In reply to comment #15)
> Reedy seems to update the static-current symlink every Friday, so maybe we
> have
> to wait until then. If you can't wait, you can use the static-1.23wmf10 URL
> for
> now.

The checkoutMediaWiki script updates this as appropriate. It probably should be called in switchAllMediaWikis too.. I'll look at doing that today.

(In reply to comment #16)
> Just note that you dont need to use a specific font URL to use this font in
> css. ULS has webfonts feature. You just need to have fontfamily defined as
> RailwaySans in inline css or external css or somewhere. ULS will make sure
> that
> font get embedded. ULS will add the necessary @fontface css to the page. Eg:
> https://translatewiki.net/wiki/User:Santhosh.thottingal
> 
> As noted above, bits.wikimedia.org does not seem to have updated to the
> required version

Thanks Santhosh! :) I did think there was a "better" way to use in on a wiki rather than having to load in a bits url etc etc
Comment 19 Sam Ballard 2014-01-16 07:11:22 UTC
I've put it to use on the site, thanks a lot guys!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links