From e33c7c0e779c65dac5d3b6db640d43c79cb43e12 Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Sat, 8 Nov 2008 08:35:54 -0800 Subject: [PATCH] Add a set of fonts for presence testing, each of which has a single glyph at the codepoint for a capital letter A-Z. (Bug 457821) --- layout/reftests/fonts/mark-generate.py | 68 +++++++++++++++++++++++++ layout/reftests/fonts/mark-glyph.svg | 6 +++ layout/reftests/fonts/mark2-glyph.svg | 3 ++ layout/reftests/fonts/mark2A.ttf | Bin 0 -> 1524 bytes layout/reftests/fonts/mark2B.ttf | Bin 0 -> 1524 bytes layout/reftests/fonts/mark2C.ttf | Bin 0 -> 1524 bytes layout/reftests/fonts/mark2D.ttf | Bin 0 -> 1524 bytes layout/reftests/fonts/markA.ttf | Bin 0 -> 1528 bytes layout/reftests/fonts/markB.ttf | Bin 0 -> 1528 bytes layout/reftests/fonts/markC.ttf | Bin 0 -> 1528 bytes layout/reftests/fonts/markD.ttf | Bin 0 -> 1528 bytes 11 files changed, 77 insertions(+) create mode 100755 layout/reftests/fonts/mark-generate.py create mode 100644 layout/reftests/fonts/mark-glyph.svg create mode 100644 layout/reftests/fonts/mark2-glyph.svg create mode 100644 layout/reftests/fonts/mark2A.ttf create mode 100644 layout/reftests/fonts/mark2B.ttf create mode 100644 layout/reftests/fonts/mark2C.ttf create mode 100644 layout/reftests/fonts/mark2D.ttf create mode 100644 layout/reftests/fonts/markA.ttf create mode 100644 layout/reftests/fonts/markB.ttf create mode 100644 layout/reftests/fonts/markC.ttf create mode 100644 layout/reftests/fonts/markD.ttf diff --git a/layout/reftests/fonts/mark-generate.py b/layout/reftests/fonts/mark-generate.py new file mode 100755 index 00000000000..50e9ea8380a --- /dev/null +++ b/layout/reftests/fonts/mark-generate.py @@ -0,0 +1,68 @@ +#!/usr/bin/python +# vim: set shiftwidth=4 tabstop=8 autoindent expandtab: +# ***** BEGIN LICENSE BLOCK ***** +# Version: MPL 1.1/GPL 2.0/LGPL 2.1 +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Original Code is mark-generate.py . +# +# The Initial Developer of the Original Code is the Mozilla Foundation. +# Portions created by the Initial Developer are Copyright (C) 2008 +# the Initial Developer. All Rights Reserved. +# +# Contributor(s): +# L. David Baron , Mozilla Corporation (original author) +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 2 or later (the "GPL"), or +# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), +# in which case the provisions of the GPL or the LGPL are applicable instead +# of those above. If you wish to allow use of your version of this file only +# under the terms of either the GPL or the LGPL, and not to allow others to +# use your version of this file under the terms of the MPL, indicate your +# decision by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL or the LGPL. If you do not delete +# the provisions above, a recipient may use your version of this file under +# the terms of any one of the MPL, the GPL or the LGPL. +# +# ***** END LICENSE BLOCK ***** + +# For general fontforge documentation, see: +# http://fontforge.sourceforge.net/ +# For fontforge scripting documentation, see: +# http://fontforge.sourceforge.net/scripting-tutorial.html +# http://fontforge.sourceforge.net/scripting.html +# and most importantly: +# http://fontforge.sourceforge.net/python.html + +# To install what you need, on Ubuntu, +# sudo apt-get install python-fontforge + +import fontforge + +# generate a set of fonts, each with our special glyph at one codepoint, +# and nothing else +for codepoint in range(ord("A"), ord("D") + 1): + for (mark, width) in [("", 1500), ("2", 1800)]: + charname = chr(codepoint) + f = fontforge.font() + n = "Mark" + mark + charname + f.fontname = n + f.familyname = n + f.fullname = n + f.copyright = "Copyright (c) 2008 Mozilla Corporation" + + g = f.createChar(codepoint, charname) + g.importOutlines("mark" + mark + "-glyph.svg") + g.width = width + + f.generate("mark" + mark + charname + ".ttf") diff --git a/layout/reftests/fonts/mark-glyph.svg b/layout/reftests/fonts/mark-glyph.svg new file mode 100644 index 00000000000..10adee25e2c --- /dev/null +++ b/layout/reftests/fonts/mark-glyph.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/layout/reftests/fonts/mark2-glyph.svg b/layout/reftests/fonts/mark2-glyph.svg new file mode 100644 index 00000000000..d38515d136b --- /dev/null +++ b/layout/reftests/fonts/mark2-glyph.svg @@ -0,0 +1,3 @@ + + + diff --git a/layout/reftests/fonts/mark2A.ttf b/layout/reftests/fonts/mark2A.ttf new file mode 100644 index 0000000000000000000000000000000000000000..063cab5bcd33bed3761ccb981bb401512ec50538 GIT binary patch literal 1524 zcmdT^O=uHA6#iy+vq`mDOH~vqY*f@LO*bhmQG!~l!GqC4wMY-jlB7v!(hb{G+v-6O zFY3Xgcu~Qt#rCR)B8rL^PvW5mJqQKy=THxVHGVVM#0mw^&M^DF_y6Y2%t8QIhbz!A zkW8LVot#;G1q9wv+J0)VD|Ti%+Y5-Zv&<*O1oHJgo zRv8I_H{?UP;?&5+;rlN28_8eJXPwNq!F!j87r1)!6f`{!u462z-wg#xb1!!$$cf3-aK@amkpnfmp-nc&O zd;9u)OX54$>Wh@%c|1~T&@f;=(4LSFL6cGr`Y6e8Q0ApxMUt>S3?(rdKGIVt*vhFz<_;2e}nZ z_E_xI?y!?VL}mrL5_3TVpJTITU?DN5YlN89r8pqPb3s%5Ow6%`pJUyv;nv;VtvkY^ zY4ODi?auN@SmW~%@~qTN3j%G@h%58bc=Yney!PZ*vshX_TI=F^%+${ZyKvIS0w%8d zn3o5)eXL_UKKj^zDK`5!fDPi1k4?(Y$y;H_J9mPsh6S22;bV>Xx{q}n#a$m8Xci$K z2VjY9J~k;IKtEiRF$E6=>DYxzmMW(Xsknuk3nGrQp&oMJErVOwdQh@kV2kBFhdJxF5dl zR5nwXAWf>k6-7N3m}T-9AE-@wfNN!>nxqGvh;nu|%16>2t0Y}7m$hOM+d5#?G7|K3 zMx&jwOqqR^l7^Vi!??daOSL1avdhL;{G(>Qaqh^n?P$cdZAw;+Q-77!t1RlzgC+Eb aK`LmqQ}KfDy!JmL`|RM2FH*YlpZ6P3i^ehl literal 0 HcmV?d00001 diff --git a/layout/reftests/fonts/mark2B.ttf b/layout/reftests/fonts/mark2B.ttf new file mode 100644 index 0000000000000000000000000000000000000000..541df8dc21b96ac9d3f07860bbcd4632690d5494 GIT binary patch literal 1524 zcmdT^O=uHA6#iy+vq`o7l&T0;-1uLiaTBRV3ALm(craS97U@A*k~9e>-LQ>6tsaEp zMLl?wUR3B=+g|mcpr{8yyy(G$7onG`hk6if<2RE{R8TxS!|eOsoA=&)^JZot0Ib4Q z=om<)2Ghsy&%Xo$?`Z8fadL0$)N<|sAWl;s%9NdozD8f5{+J_~xlpwb*2V$d;JlG{ z#wxWMGa>MrdMIBSAGtVu&*l6&>Q@RmC;R2(-OI%9IrbN5Xn7c1#awcJd!bytw0ei@J&OP|NDZu$#fYx4d$Evjl=;r#`(G0HL=l;of5vgkz;N!_Z&F|48$C+SZ{WUQpb zSwhxZjSfFgf*N;#4j8Z~4R)y~c{b`>d(v1@n9anHteO=dR87YHvq=K~byIhk_eJ&| z?nIL{7JIZQRx*gltiayHT+qNmY}O3CPt55WA!c=H4oLG{&=lVjb1dOPY+qZrZP&iG zZDG+e|NOZ&wKNje_6s-tpSvaJK{mfLibfXJV_O2#Lsor7 zg6^(pv`fo~6nW=*F@SV%IETs0d=f)=~fBonE04g8GG5`Po literal 0 HcmV?d00001 diff --git a/layout/reftests/fonts/mark2C.ttf b/layout/reftests/fonts/mark2C.ttf new file mode 100644 index 0000000000000000000000000000000000000000..798eddd32b4b763377192b0c6c4ad28146053b98 GIT binary patch literal 1524 zcmdT^L1+^}6n(S1*`(TPYgIf{*r-%1G~Glhv4mPo4IYdZszrKGmLyF=lWy2XZL0@C zyr>6{;zb3|()4N%Jt*o$JSuqbBJ`pN)`MV;Zzh|Rg5ud3X8-$t=Kp!~_s>88=)eu= z7)zzjrO!NFeGLTO(b{u%d?0qdo{IzG0`-YZ*{NWM{)PGq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;OPYV7#J7_?XT0N?Djg9%4>B#10md`#3{PZQRwQg$7A=1~TJ2U=u9MXEg(dWw aPARymUFm}Ny!swdeKBzBqqP3|=KTZ@*~K#e literal 0 HcmV?d00001 diff --git a/layout/reftests/fonts/markA.ttf b/layout/reftests/fonts/markA.ttf new file mode 100644 index 0000000000000000000000000000000000000000..66f5fee2e4f29f68a13d286a3d790561581f100d GIT binary patch literal 1528 zcmd5+O-NKx6#nk}8AmIBNNMBZ4MmyY_+~;GWD0+3B4|`7B;3SfW}F$C@eR*0R0xWS zpj@=5jksvpN>bVcEg}kS@6ts}HzkCv%BJt$_Z*`ZZo8Lr&;PmSo_EfJ0B{U^KJfIuY8+m7@QmZi% z%uVv)d})3v99ZAgp-CwheYCf=WlX9%z?@T&e4T$9N@C!sd@Yys6iPOT zsFDbCOYFj=>amKx=wtC2F+pn$p+;pV51D6ujZa<5Vh}?Z(ydwoll0C~8Q3tRh%}X% z5u`?DAfYp`Ns^P+oiJb#8{Co~;s;iz3O51 zi`*$Ds>vFQZf%K`Y(R8Xpf|bJVBkx9HDqoj*K~~}R&^;hrFg9&Bz`8>Si&#yb8V5f zGw0e)MnvQG`ntBXHxs4IOsTN(@rRn717DonY z$GasFavY5!AHzXU=d#6F;*^S7RoG*8Io=%SwA#c2go7|X--jN=xO?iEBjrw4Q?8fK zS@EcC4Or?r;=Z0(tVbp&ul_rk3Et#kCU}*lst{B6%6eG*vF5xPKE$%^Sk$&{O8yP9 mKbf`r%;sQdNd`;)fd#EjDPC~a{eKeK4;P+%mC`@|d%pqwM$sey literal 0 HcmV?d00001 diff --git a/layout/reftests/fonts/markB.ttf b/layout/reftests/fonts/markB.ttf new file mode 100644 index 0000000000000000000000000000000000000000..f3317b5f49d3a95bd6b5194487a32c7923f11bf0 GIT binary patch literal 1528 zcmd5+O=uHQ5dPl&q-m?xiqcCD8~kg9#!aLWB#N{e5sV5-5ihbPX%d=r!!}AQ3W|!L z9z5u!^x)Bx+9G)IprELCk3D$orFy9+t?`?;+bAgX>U+GMZ+>^)?94&|*of;eaXObf zn?Lz<=_6n-Qrds&%-;0a#bP(0&XFH0)V+q;V=j|_%`;NC+;osIW&qQo-YR=jjaG}1 zV1FVXFV|+q}!lA`W=;ebGr8-Zj*mbesj$) zcxd1({o~}j>fUq%$8nJQ40&hLtCy~B>C0087%(~-{#3K|48wf?6YBRs?#46F{pIC_ zp6oYtn@g17T_#y?(?n~|o;F^QkHZit7k!LZtvQ_6b$~ssBZa!~X=#at4RTv9@l;xN z7)dQr_M%#WP1Ri;{eDQ*XQULZ4a7RNojfGZ_BuU&w1~qP!HDU!GB{7~B9)O1GfIf5 zWX2;J$v{qjWRoQ)*8Q;HkXqcrkMP^*XY0*cG!<(HhGf;Q0HI#ux9$o{u&&wvYoL3W z{USTZG!3b-+GEVJk{w9SE9}iKbXZtU&&TY=?1E_!V%`+7E#ifanEH`jUkeFiGUS zU_uB=9E~b3!$HrNiq%V`IUTjBX~67CI;SLaa&SOrwH7AihcSc{_fR`?F`i0H6#iCE15CADZo^8D@Ru$#lM79L*9+CQZU7fIIf#Yx~@yf-#1#D k%+^h2^LuCsqa}Y}MXQ~fSDba3XC>U*L-)Q2{qw)~3)Yg+Bme*a literal 0 HcmV?d00001 diff --git a/layout/reftests/fonts/markC.ttf b/layout/reftests/fonts/markC.ttf new file mode 100644 index 0000000000000000000000000000000000000000..5894180a899b1a459d1545158de520ac0d637472 GIT binary patch literal 1528 zcmd5+O=uHA6#iy^lC=IcQW2qt4T`pfrkj+OP-2l*BZ8>~rHB_U=Iwg}0pJksLdRGp zb1gf%yz?F~x5(|da$A~kcu0DMbX&#E zIjG?p?IWaHtIliu&s3wfNw2u5_Pk-`mH=P3+y7*R~B z%E-8+L`EQ2N1&4?CAB+Xz~X6eN_vFEgTZx(`!uOr(|C= z7CqA!JsA@%I~yC?;@(6|WBcgH2bCs$9-#mJ*sN{E~<1;8vE(LV~Y^%!d3n#tYswFJjqtB5vC@Ie*@0 lzcU;68O^VzB@Bjqfd#crD_XGE{Wpo^+o30Xvwwg0egeKB(jx!> literal 0 HcmV?d00001 diff --git a/layout/reftests/fonts/markD.ttf b/layout/reftests/fonts/markD.ttf new file mode 100644 index 0000000000000000000000000000000000000000..5440c1c4cf3620e57453981f29be18a869debf27 GIT binary patch literal 1528 zcmd5+Jxo(k6#nk}DFs9zK^~X-nJC@|s66Kw_d% zW1WoNE}E4V;?g1j~DlymovpB$oo1<)EQ?o73|ihjQT74_YacjGy;xApRN zYw|mq^=(S4M$k$j#1G?c`^5qVoK=_!w=BC(%N!1e-ebJ|43o$`!4WUM5Cm%A;`no=ODT^VDVpO+k2~5yCOJ!igj3Uxh zX2v5mG6Q)!1Dhl{Y266}7OBB4`B8ow^{l-=h$ceyz>rzhD?q50^gG1zi*N|T|IjYYS%#7Z_Gx+>6{Tx&3}6JHIPo5?j@BgCpM#ikUmHH5^EM#Na(x`4{4z%1a$@JE0SIifxR#)b{6}Rn#m39}3rIKTfxL(EeoNCdfU7AiFrZ_T4 zJKmHe$Z<4^ybK3Doy!(yNmD9nRZ)-GYhO`vsSI(jx!> literal 0 HcmV?d00001