1. Various Issues
- Posted by "C. K. Lester" <cklester at TICNET.COM> Aug 20, 1999
- 364 views
I hate to bring this up again, but I'm about to start a huge project and I'll need to be able to PRINT formatted stuff. Here's a coupla questions: 1. Is there a printer driver available for DOS that EUPHORIA can use that would make printing formatted documents simple? 2. I would need to add strikethrough to Jiri's font.e, and though I've done a little examination to try and add it myself, I'm not sure exactly where to put the code. If someone could drop a hint, I'd appreciate it. (I tried duplicating the "underline" code and changing the height of the line, but obviously I didn't know what I was doing.) Also, is this the best DOS fonts library around? Now's the time to promote your own library if ya gots one... 3. How do I format strikethrough text in Win32 using Llama? 4. How do I print using Llama? Thanks, guys! (and gals?) < |<
2. Re: Various Issues
- Posted by David Cuny <dcuny at LANSET.COM> Aug 20, 1999
- 347 views
- Last edited Aug 21, 1999
C. K. Lester wondered: >1. Is there a printer driver available for DOS that > EUPHORIA can use that would make printing formatted > documents simple? Not that I'm aware of. I had toyed with the idea of adding printing support to a DOS version of Win32Lib, but I'm having doubts that there's really much demand for such a tool. >2. I would need to add strikethrough to Jiri's font.e, > and though I've done a little examination to try and > add it myself, I'm not sure exactly where to put the > code. I'd calculate the height of the font, divide by 2, and just draw a line. >3. How do I format strikethrough text in Win32 using Llama? See above. I don't know that there is actual built-in Win23 support for strikethrough, other than allowing it as an option in the Choose Font common dialog. >4. How do I print using Llama? I'll look and see if I have a stable version that supports printing. Unfortunately, I don't think I've documented it. I may start on a new port of Llama that parallels GtkLib, and I'll try to get printing supported in that. Visual Euphoria is getting pretty impressive - Win32Lib/Llama is getting some stiff competition. -- David Cuny
3. Re: Various Issues
- Posted by "C. K. Lester" <cklester at TICNET.COM> Aug 21, 1999
- 348 views
I know what to do to get strikethrough, I just don't know where to put it! -----Original Message----- From: Euphoria Programming for MS-DOS [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]On Behalf Of David Cuny Sent: Saturday, August 21, 1999 12:20 AM To: EUPHORIA at LISTSERV.MUOHIO.EDU Subject: Re: Various Issues C. K. Lester wondered: >1. Is there a printer driver available for DOS that > EUPHORIA can use that would make printing formatted > documents simple? Not that I'm aware of. I had toyed with the idea of adding printing support to a DOS version of Win32Lib, but I'm having doubts that there's really much demand for such a tool. >2. I would need to add strikethrough to Jiri's font.e, > and though I've done a little examination to try and > add it myself, I'm not sure exactly where to put the > code. I'd calculate the height of the font, divide by 2, and just draw a line. >3. How do I format strikethrough text in Win32 using Llama? See above. I don't know that there is actual built-in Win23 support for strikethrough, other than allowing it as an option in the Choose Font common dialog. >4. How do I print using Llama? I'll look and see if I have a stable version that supports printing. Unfortunately, I don't think I've documented it. I may start on a new port of Llama that parallels GtkLib, and I'll try to get printing supported in that. Visual Euphoria is getting pretty impressive - Win32Lib/Llama is getting some stiff competition. -- David Cuny
4. Re: Various Issues
- Posted by David Cuny <dcuny at LANSET.COM> Aug 21, 1999
- 347 views
C. K. Lester wrote: >I know what to do to get strikethrough, I just don't know where to put it! Sorry; didn't mean that as an insult. I just picked the easier of the two interpretations. -- David Cuny
5. Re: Various Issues
- Posted by "C. K. Lester" <cklester at TICNET.COM> Aug 21, 1999
- 336 views
I didn't take it as an insult... I just figured I needed to clarify. I figured I could modify the underline code to place the "underline" through the text, but when I tried, I never could get it to draw. I even created a "strikethrough line thickness" item in the "default" variable and set STRIKETHRU to 16 where appropriate. But, again, I don't know which part of the code actually draws the stuff to screen. Is Jiri still around? I'm sure HE could help big time... Thanks, Mr. Cuny! ck -----Original Message----- From: Euphoria Programming for MS-DOS [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]On Behalf Of David Cuny Sent: Saturday, August 21, 1999 11:24 AM To: EUPHORIA at LISTSERV.MUOHIO.EDU Subject: Re: Various Issues C. K. Lester wrote: >I know what to do to get strikethrough, I just don't know where to put it! Sorry; didn't mean that as an insult. I just picked the easier of the two interpretations. -- David Cuny
6. Re: Various Issues
- Posted by Colin Taylor <cetaylor at COMPUSERVE.COM> Aug 21, 1999
- 341 views
- Last edited Aug 22, 1999
At 05:08 PM 8/21/99 -0500, C. K. Lester wrote: > >I figured I could modify the underline code to place the "underline" through >the text, but when I tried, I never could get it to draw. I even created a >"strikethrough line thickness" item in the "default" variable and set >STRIKETHRU to 16 where appropriate. But, again, I don't know which part of >the code actually draws the stuff to screen. Is Jiri still around? I'm sure >HE could help big time... > I haven't heard a peep from Jiri lately... Font.e has fragments of underline code scattered through the program to handle CLEAR and OPAQUE modes, horizontal and vertical printing, patterned foreground, the shadow of the underline, etc. (you get the idea) It isn't hard to change the underline to a strikethrough, but you have to find and change all the instances of underline code. You can find the u/l code by searching for references to "pa[5]". In font.e (version 4.40) at line 418 you will find: pixel(repeat(fc,w),{x,y+h-1}) If you replace "h" with "floor(h/2)+1", the underline will turn into a strikethrough (but only for CLEAR mode horizontal printing). If you do a similar fix on line 393, the shadow of the underline will also move up. This should give you enough of an hint that you can continue to fix the rest of the u/l code. Colin Taylor
7. Re: Various Issues
- Posted by "C. K. Lester" <cklester at TICNET.COM> Aug 21, 1999
- 344 views
Thanks, Colin! Just what I needed. -----Original Message----- From: Euphoria Programming for MS-DOS [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]On Behalf Of Colin Taylor Sent: Saturday, August 21, 1999 7:04 PM To: EUPHORIA at LISTSERV.MUOHIO.EDU Subject: Re: Various Issues At 05:08 PM 8/21/99 -0500, C. K. Lester wrote: > >I figured I could modify the underline code to place the "underline" through >the text, but when I tried, I never could get it to draw. I even created a >"strikethrough line thickness" item in the "default" variable and set >STRIKETHRU to 16 where appropriate. But, again, I don't know which part of >the code actually draws the stuff to screen. Is Jiri still around? I'm sure >HE could help big time... > I haven't heard a peep from Jiri lately... Font.e has fragments of underline code scattered through the program to handle CLEAR and OPAQUE modes, horizontal and vertical printing, patterned foreground, the shadow of the underline, etc. (you get the idea) It isn't hard to change the underline to a strikethrough, but you have to find and change all the instances of underline code. You can find the u/l code by searching for references to "pa[5]". In font.e (version 4.40) at line 418 you will find: pixel(repeat(fc,w),{x,y+h-1}) If you replace "h" with "floor(h/2)+1", the underline will turn into a strikethrough (but only for CLEAR mode horizontal printing). If you do a similar fix on line 393, the shadow of the underline will also move up. This should give you enough of an hint that you can continue to fix the rest of the u/l code. Colin Taylor