Page MenuHomePhabricator

Add "railway-sans" font for use on wikimania2014 wiki
Closed, ResolvedPublic

Description

Author: samballard99

Description:
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


Version: master
Severity: enhancement

Details

Reference
bz58203

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:33 AM
bzimport set Reference to bz58203.
bzimport added a subscriber: Unknown Object (MLST).

Do you want this font made available for use in SVG files?

samballard99 wrote:

(In reply to comment #1)

Do you want this font made available for use in SVG files?

no, just for plain text

(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.

samballard99 wrote:

(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 =)

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)

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..

Change 101674 had a related patch set uploaded by Reedy:
Add RailwaysSans font

https://gerrit.wikimedia.org/r/101674

Change 101674 merged by jenkins-bot:
Add RailwaysSans font

https://gerrit.wikimedia.org/r/101674

(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.

samballard99 wrote:

Thanks very much guys!

do you have any instructions on how to define the font in the CSS?

(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

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.

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.

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.

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

(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? :)

(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

samballard99 wrote:

I've put it to use on the site, thanks a lot guys!