Printer Default Font

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jayadevu
Posts: 240
Joined: Tue May 19, 2009 7:10 am

Printer Default Font

Post by jayadevu »

Hi All,
In Harbour we can use
oPrinter:SetFont( "Lucida Console", 8, { 3, -50 } )
to set the font for the entire print job. What is the similar command in HMG ?

To my understanding it is
@ row, col PRINT data FONT 'Lucida Console' SIZE 5
.

Please clarify.

Warm regards,

Jayadev
User avatar
danielmaximiliano
Posts: 2763
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: Printer Default Font

Post by danielmaximiliano »

Hi Jayadevu:
HMG references say:

Code: Select all

@ <Row> , <Col> PRINT [ DATA ] <xData>

    [ TO <nToRow> , <nToCol> ]

    [ FONT <cFontName> ]

    [ SIZE <nFontSize> ]

    [ BOLD ]

    [ ITALIC ]

    [ UNDERLINE ]

    [ STRIKEOUT ]

    [ COLOR <aColor> ]

    [ RIGHT | CENTER ] 

 

 

-    <xData> type can be character, numeric, date, logical or memo.

-    Logical data is shown as 'Yes' or 'No' (translated according selected language).

-    If <xData> is multi-line text (character or memo types), you must specify TO <nToRow> , <nToCol> optional parameters.

-    When <xData> type is numeric, digits are printed begining exactly at specified position (without leading spaces).

-    If optional RIGHT clause is used <Row> , <Col> indicates the right coordinates of <xData> (unless TO <nToRow> , <nToCol> is specified.

-    If optional CENTER clause is used <Row> , <Col> indicates the center coordinates of <xData> (unless TO <nToRow> , <nToCol> is specified.

 

 

Units: <Row> , <Col> units are milimeters.

 
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
jayadevu
Posts: 240
Joined: Tue May 19, 2009 7:10 am

Re: Printer Default Font

Post by jayadevu »

Dear DanielMaxmiliano,

Many thanks for your reply.

Specifying Font and Font Size for each line was not the idea. I wanted to specify the Font and Font size at the start of the print job for the whole print job.

Warm regards,

Jayadev
Post Reply