I have some questions about GRX font usage:
a) is there a free font editor for GRX fonts available b) how can I save a GRX font generated by GrLoadConvertedFont() to a 'file.fnt' c) how to use the output of GrDumpFont() properly d) are there some more fonts of the family "PC<W>x<H>[t].fnt" available for GRX (I like that thin pc8x14t.fnt :-)
Thanks for any help
Waldemar Schultz escribió:
I have some questions about GRX font usage:
a) is there a free font editor for GRX fonts available
No, but it will be a good idea.
b) how can I save a GRX font generated by GrLoadConvertedFont() to a 'file.fnt'
There isn't any premade function to do it, but you can know about the internal format reading the source: src/fonts/fdv_grx.c. 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
c) how to use the output of GrDumpFont() properly
Read the updated GRX manual in my page.
d) are there some more fonts of the family "PC<W>x<H>[t].fnt" available for GRX (I like that thin pc8x14t.fnt :-)
I don't know any other.
On Tue, 9 Jan 2001, Mariano Alvarez Fernandez wrote:
Read the updated GRX manual in my page.
Thank you for your work.
It would be nice if the updated manual could be made available from the usual DJGPP sites as well, either as part of the GRX distribution or as a separate package. If you can generate it in a few other formats, such as Info or plain ASCII, that would be even better.
Eli Zaretskii escribió:
On Tue, 9 Jan 2001, Mariano Alvarez Fernandez wrote:
Read the updated GRX manual in my page.
Thank you for your work.
It would be nice if the updated manual could be made available from the usual DJGPP sites as well, either as part of the GRX distribution or as a separate package. If you can generate it in a few other formats, such as Info or plain ASCII, that would be even better.
I had plans to do it, but some license issues stopped me when I had the time. Perhaps in a near future, if no one take the job. GRX now lacks of an official maintainer.
Greetings, M.Alvarez
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.
Waldemar Schultz escribió:
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
Thanks, you are right, but it must be "\x06\x04" without the "," ok?.
============ 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 */
Opps!, you are right again, thanks. But I prefer "GrBlack() | GrOR", because a GrColor constant is defined like "color | operation". Black color (= 0) | actual bit color = actual bit color. GrNOCOLOR works because 0 | GrXOR == 0 | GrOR.
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);
I know what do you mean, I have the same problem. I will try to find it when I will have the time.
Thanks again for your report, please feel free to mail me if you found any other errors in the user's manual.
M.Alvarez
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?
Oops, I sure should have opened the archive (the exes are there), before posting that question, sorry.
Works great! Many thanks for your help.