Mariano Alvarez Fernandez schrieb:
a) is there a free font editor for GRX fonts available
No, but it will be a good idea.
I plan to modify my simple icon editor to do the job. I will inform the community as soon as it is done.
A font converter from truetype to grx format was built by Herbert Richard, his home page is out, but I have a local copy in: http://www.terra.es/personal/malfer/grx/resourc.htm
Do you happen to have DOS binaries (.exe) to do the job?
Read the updated GRX manual in my page.
Thnks a lot for your great work on the docs. I am using them _very_ frequently :-) If I am not mistaken I found two incoherencies in the manual. Would you kindly check that out please.
in section 'Customized line drawing' . . . Example, a white line 3 bits wide and pattern 6 bits draw, 6 bits nodraw:
unsigned char mydash[2] = { 0xFC,0x00 }; GrLineOption mylineop; ... mylineop.lno_color = GrWhite(); mylineop.lno_width = 3; mylineop.lno_pattlen = 12; mylineop.lno_dashpat = mydash; =============================================== from my experiments with grx2.3.2 the example should read as follows:
Example, a white line 3 bits wide(thick) and pattern 6 bits draw, 4 bits nodraw:
GrLineOption mylineop; ... mylineop.lno_color = GrWhite(); mylineop.lno_width = 3; mylineop.lno_pattlen = 2; mylineop.lno_dashpat = "\x06,\x04";
white, 3 pixels wide, 2 pattern items: pattern 6 bits draw, 4 bits nodraw =============================================================
in section 'Text drawing' . . . (note that 'bg' equal to 'GrBlack() | GrAND' make the background transparent) ============================================================================= from my experiments with grx2.3.2 the note should read as follows:
(note that 'bg' equal to 'GrNOCOLOR' make the background transparent).
=>#define GrNOCOLOR (GrXOR | 0) /* GrNOCOLOR is used for "no" color */
BTW one further question: do you know what would be necessary to change in the sources of GRX to achieve that the TEXT screen is not cleared on exit()? What I want is the following fragment should show the message without any additional getch() before exit().
... GrSetMode(GR_default_text); printf("There were some errors.\n"); exit(1);
Many thanks for your help.