Using fonts

Using fonts

Postby Frank Demont » Fri Oct 14, 2005 6:21 am

Hello,

I try to define 3 sizes of fonts :

DEFINE FONT Fnt[1] NAME "MS Sans Serif" SIZE 9 , 12
DEFINE FONT Fnt[2] NAME "MS Sans Serif" SIZE 0 , 10
DEFINE FONT Fnt[3] NAME "MS Sans Serif" SIZE 0 , 8
DEFINE DIALOG oDlg
@ 1 , 1 SAY "SIZE 12" OF oDlg FONT Fnt[1]
@ 1 , 5 SAY "SIZE 10" OF oDlg FONT Fnt[2]
@ 1 , 7 SAY "SIZE 8" OF oDlg FONT Fnt[3]

Making a test , i can see difference between size 12 , and size 10 , NOT between size 10 and size 8

Is Size 8 not available with MS Sans Serif ?
Maybe another font ?

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

Postby Detlef Hoefner » Sat Oct 15, 2005 11:01 am

Frank,

you are right.
With Arial font the example shows different sizes 10 and 8.
With Sans serif not.

Code: Select all  Expand view
#include  "fivewin.ch"

///////////////
FUNCTION Main()
///////////////
LOCAL aFont := array( 3 )
LOCAL oDlg


   DEFINE FONT aFont[ 1 ] NAME "Arial" SIZE 0 , -12
   DEFINE FONT aFont[ 2 ] NAME "Arial" SIZE 0 , -10
   DEFINE FONT aFont[ 3 ] NAME "Arial" SIZE 5 ,  -8
   
   DEFINE DIALOG oDlg

   @ 1 , 10 SAY "SIZE 12" OF oDlg FONT aFont[ 1 ]
   @ 2 , 10 SAY "SIZE 10" OF oDlg FONT aFont[ 2 ]
   @ 3 , 10 SAY "SIZE 8"  OF oDlg FONT aFont[ 3 ]

   ACTIVATE DIALOG oDlg

RETURN( NIL )


Regards,
Detlef
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 37 guests