This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *.svg; do inkscape -f "$i" -e "$i.png"; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fontforge | |
font = fontforge.open("/usr/share/fonts/truetype/ttf-malayalam-fonts/Meera_04.ttf", 4) | |
print "Glyphs" | |
for (i,g) in enumerate(font.glyphs()): | |
print "%s\t%s\t%s\t%s\t%s\t%s\t%s"%(i,g.glyphname,g.glyphclass,g.script,g.encoding,g.unicode,g.getPosSub("*")) | |
print "GSUB Lookups" | |
for (i,g) in enumerate(font.gsub_lookups): | |
print "%s\t%s"%(i,g) | |
print "GPOS Lookups" | |
for (i,g) in enumerate(font.gpos_lookups): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import fontforge | |
if len(sys.argv) < 3: | |
print("Usage: %s <from> <to>" % sys.argv[0]) | |
sys.exit(1) | |
fromfile = sys.argv[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fontforge | |
font = fontforge.open("/usr/share/fonts/truetype/ttf-malayalam-fonts/Meera_04.ttf", 4) | |
print "Glyphs" | |
for (i,g) in enumerate(font.glyphs()): | |
print "%s\t%s\t%s\t%s\t%s\t%s\t%s"%(i,g.glyphname,g.glyphclass,g.script,g.encoding,g.unicode,g.getPosSub("*")) | |
print "GSUB Lookups" | |
for (i,g) in enumerate(font.gsub_lookups): | |
print "%s\t%s"%(i,g) | |
print "GPOS Lookups" | |
for (i,g) in enumerate(font.gpos_lookups): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** You don't need a -ms-prefix for IE10. [http://msdn.microsoft.com/en-us/library/ie/hh673530(v=vs.85).aspx] ***/ | |
.my-animation { | |
-webkit-animation: my-animation 2s 0.5s 1 ease-in-out normal both; | |
-moz-animation: my-animation 2s 0.5s 1 ease-in-out normal both; | |
-o-animation: my-animation 2s 0.5s 1 ease-in-out normal both; | |
animation: my-animation 2s 0.5s 1 ease-in-out normal both; | |
} | |
/*** Single values in this case (prefix-free). ***/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-webkit-keyframes NAME-YOUR-ANIMATION { | |
0% { opacity: 0; } | |
100% { opacity: 1; } | |
} | |
@-moz-keyframes NAME-YOUR-ANIMATION { | |
0% { opacity: 0; } | |
100% { opacity: 1; } | |
} | |
@-ms-keyframes NAME-YOUR-ANIMATION { | |
0% { opacity: 0; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
USAGE: <div class="swing animated loop3"></div> | |
*/ | |
.loop1 { | |
animation-iteration-count:1; | |
-moz-animation-iteration-count:1; | |
-webkit-animation-iteration-count:1; | |
} | |
.loop2 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-webkit-animation-name: 'glow'; | |
-webkit-animation-duration: .7s; | |
-webkit-animation-iteration-count: infinite; | |
-webkit-animation-direction: alternate; | |
-webkit-animation-timing-function: ease-in-out; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, embed, |