Printing horizontal and vertical text

Printing horizontal and vertical text

Postby Frank Demont » Fri Feb 09, 2007 8:02 am

Hello,

I have to print horizontal and vertical text on the same page.

Is it possible ?

Frank
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Postby Antonio Linares » Fri Feb 09, 2007 8:40 am

Frank,

You may use different fonts, for vertical text here you have a sample:

DEFINE FONT oFntV NAME "Arial" SIZE 0,-4.5 BOLD NESCAPEMENT 900 OF oPrn

oPrn:cmSay( 9.5, 0.6, "test", oFntV )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Ruben Fernandez » Fri Feb 09, 2007 8:43 am

Frank:

Yes, try with NESCAPEMENT or something like this when define
the font

Define Font oFont NAME "MS SANS SERIF" Size 0,-15 NESCAPEMENT 360 <- this is the number to do it. Try with it.

Regards

Ruben Fernandez
Ruben Fernandez
 
Posts: 366
Joined: Wed Aug 30, 2006 5:25 pm
Location: Uruguay

Postby Frank Demont » Fri Feb 09, 2007 9:10 am

Antonio , Ruben

Thanks , with nescapement 900 or -900 it works , not with 360

Code: Select all  Expand view
# include "fivewin.ch"
FUNCTION MAIN
LOCAL oPrn   , cTitle := "merging horizontal and vertical text"
LOCAL Font , oFntV
PRINT oPrn NAME cTitle PREVIEW MODAL
DEFINE FONT oFntV NAME "Arial" SIZE 0,-15 BOLD NESCAPEMENT -900 OF oPrn
Define Font oFont NAME "MS SANS SERIF" Size 0,-15 NESCAPEMENT 360 oF oPrn
PAGE
  oprn:cmsay(5,5,"HORIZONTAL")
  oprn:cmsay(10,15,"VERTICAL 1",oFntV)
  oprn:cmsay(10,10,"VERTICAL 2",oFont)   // Doesn't work , horizontal printing
ENDPAGE
ENDPRINT
oFont:end()
oFont := nil
oFntV:end()
oFntv := nil
RETURN nil   
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 50 guests