X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fdemofont.c;h=667047221da71aebda4c0b1bea017ad37762a76d;hb=879d0eec420fe0fd5ddcd56c8fe62b82a6744edd;hp=e48b1684020caf6fb7afdb7a5894f03963484448;hpb=3cf7bdf11b3f690167c55c35fb21eb24018678dc;p=swftools.git diff --git a/lib/example/demofont.c b/lib/example/demofont.c index e48b168..6670472 100644 --- a/lib/example/demofont.c +++ b/lib/example/demofont.c @@ -6,9 +6,19 @@ Part of the swftools package. - This file is distributed under the GPL, see file COPYING for details + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -*/ + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #define addGlyph fn3711 @@ -118,12 +128,12 @@ SWFFONT * Font_Demo_Font(U16 id) f->ascii2glyph = (int*)malloc(sizeof(int)*256); memset(f->ascii2glyph, -1, sizeof(int)*256); - addGlyph(f, 0, 102, 64, &Glyphs_Demo_Font[0x0000], 872); // f - addGlyph(f, 1, 108, 53, &Glyphs_Demo_Font[0x006d], 452); // l - addGlyph(f, 2, 111, 96, &Glyphs_Demo_Font[0x00a6], 743); // o - addGlyph(f, 3, 115, 74, &Glyphs_Demo_Font[0x0103], 951); // s - addGlyph(f, 4, 116, 53, &Glyphs_Demo_Font[0x017a], 570); // t - addGlyph(f, 5, 119, 138, &Glyphs_Demo_Font[0x01c2], 806); // w + addGlyph(f, 0, 102, 64*20, &Glyphs_Demo_Font[0x0000], 872); // f + addGlyph(f, 1, 108, 53*20, &Glyphs_Demo_Font[0x006d], 452); // l + addGlyph(f, 2, 111, 96*20, &Glyphs_Demo_Font[0x00a6], 743); // o + addGlyph(f, 3, 115, 74*20, &Glyphs_Demo_Font[0x0103], 951); // s + addGlyph(f, 4, 116, 53*20, &Glyphs_Demo_Font[0x017a], 570); // t + addGlyph(f, 5, 119, 138*20, &Glyphs_Demo_Font[0x01c2], 806); // w return f; }