Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

changing font in forprint example

cecio
Novice
412 Views
HI,
i'm trying to change the font type in forprint example with no result.
If i try to change font size instead it works.
Have you any idea?
The example set the font type to Courier New, and i try with Verdana, Courier, Symbol etc...
thanks
0 Kudos
2 Replies
Paul_Curtis
Valued Contributor I
412 Views
I am not familiar with "forprint", but the general idea in printing is that you re-write (re-paint, to be precise) your window or region,using thedevice context of a selected printer rather than the screen. The code is precisely the same codeyou used to create the output (presumably to the screen) in the first place. F90 codeillustrating Win32 API calls for selecting a font has been posted in another thread: http://softwareforums.intel.com/attachments/ids/5/13411/1/textscrolling%20example.F90
0 Kudos
Steven_L_Intel1
Employee
412 Views
The forprint sample sends a file to a printer, and does not use screen painting, as such. The font argument has always worked for me. What I suggest you do is build a debug configuration and step through the code that selects the font, seeing if there are any errors.

It may be that the printer you're using does not support bitmapped fonts?
0 Kudos
Reply