Santhosh has uploaded a new change for review.

Change subject: Support font variants
......................................................................

Support font variants

Generate the font listing in javascript with variant support

An example of generated script:

"Opendyslexic": {
        "version": "0.6",
        "license": "Creative Commons Attribution 3.0 Unported License",
        "ttf": "Opendyslexic\/opendyslexic.ttf",
        "eot": "Opendyslexic\/opendyslexic.eot",
        "woff": "Opendyslexic\/opendyslexic.woff",
        "variants": {
                "bold": "Opendyslexic Bold",
                "italic": "Opendyslexic Italic"
        }
},
"Opendyslexic Bold": {
        "version": "0.6",
        "license": "Creative Commons Attribution 3.0 Unported License",
        "fontweight": "bold",
        "ttf": "Opendyslexic\/opendyslexic-bold.ttf",
        "eot": "Opendyslexic\/opendyslexic-bold.eot",
        "woff": "Opendyslexic\/opendyslexic-bold.woff"
},
"Opendyslexic Italic": {
        "version": "0.6",
        "license": "Creative Commons Attribution 3.0 Unported License",
        "fontstyle": "italic",
        "ttf": "Opendyslexic\/opendyslexic-italic.ttf",
        "eot": "Opendyslexic\/opendyslexic-italic.eot",
        "woff": "Opendyslexic\/opendyslexic-italic.woff"
},

Corresponding ini file:

[Opendyslexic]
languages=en,af,pt,es,sw,de,fi,sq,fr,hu,ca,da,fo,ga,is,ms,sv,wa,lb,gd,oc,tr,mi,it,et,cy
version=0.6
license=Creative Commons Attribution 3.0 Unported License
licensefile=http://dyslexicfonts.com/license.php
url=https://github.com/antijingoist/open-dyslexic
ttf=opendyslexic.ttf
eot=opendyslexic.eot
woff=opendyslexic.woff
bold=Opendyslexic Bold
italic=Opendyslexic Italic

[Opendyslexic Bold]
ttf=opendyslexic-bold.ttf
eot=opendyslexic-bold.eot
woff=opendyslexic-bold.woff
fontweight=bold

[Opendyslexic Italic]
ttf=opendyslexic-italic.ttf
eot=opendyslexic-italic.eot
woff=opendyslexic-italic.woff
fontstyle=italic

Change-Id: I55afcd89fe5be5ecf35b4f2fc47ba508fbcfc41e
---
M data/fontrepo/scripts/compile.php
1 file changed, 66 insertions(+), 17 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector 
refs/changes/13/33313/1
--
To view, visit https://gerrit.wikimedia.org/r/33313
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I55afcd89fe5be5ecf35b4f2fc47ba508fbcfc41e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to