c6fe7257f91a2eb1c68d5b0ae679a79c396cf608
5 pl_glyph
find_glyph(int number
){
7 for (i
=0;i
<hershey_fonts
.f_size
;i
++){
8 // DBG("find: i=%i, number=%i\n",i,hershey_fonts.f_glyphs[i].gl_number);
9 if (hershey_fonts
.f_glyphs
[i
].gl_number
==number
){
10 return hershey_fonts
.f_glyphs
[i
];
13 fprintf(stderr
,"Error! Glyph not found! (%i)\n",number
);
19 pl_font
assemble_font(int first_id
, int size
, int * glyph_ids
){
23 pl_glyph
* glyphs
=(pl_glyph
*) malloc (size
*sizeof(pl_glyph
));
25 for (i
=0; i
<size
;i
++){
26 glyphs
[i
]=find_glyph(glyph_ids
[i
]);
27 glyphs
[i
].gl_number
=id
;
30 result
.f_glyphs
=glyphs
;
32 result
.f_label
="PL$FNT";