FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FONT SIZE within programs
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM

FONT SIZE within programs

Posted: Sat Jul 19, 2008 09:49 AM

I find that the default font of my programs (looks like 8 pnt) is too small.

How can I easily increase the font size globally across the program?

I use Peles C for Windows to design the screen layout - If I change the font there - it has not effect in my software.

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM

FONT SIZE within programs

Posted: Sat Jul 19, 2008 09:57 AM

I see I can:

DEFINE FONT fntArial NAME "Arial" SIZE 20, 20
DEFINE DIALOG Dlg_CLIENTS RESOURCE "CLIENTS" OF Win_CLIENTS ICON oIcon FONT fntArial

But how do I specify Arial 12 point? The width and height parameters make no sense.

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM

FONT SIZE within programs

Posted: Sat Jul 19, 2008 10:31 AM

Posting all by myself ! LOL

I haven't defined any fonts in my program, I am happy with the system default, but I just want it a bit bigger.

Any ideas on how I would do that?

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Creating Fonts

Posted: Sat Jul 19, 2008 10:58 AM
Hello Olli,

just have a look at Vtools
There you can test fonts and can copy the font-result ( font-defines )
some more functions are included : color-tests, browser-tests.....
maybe it is useful for you.

http://www.pflegeplus.com/fw_downloads/vtools.zip







Best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

FONT SIZE within programs

Posted: Sat Jul 19, 2008 11:25 AM

Ollie,

Try this:

DEFINE FONT fntArial NAME "Arial" SIZE -12, 0

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

FONT SIZE within programs

Posted: Sat Jul 19, 2008 12:06 PM
Antonio Linares wrote:Ollie,

Try this:

DEFINE FONT fntArial NAME "Arial" SIZE -12, 0


Shouldn't it be 0, -12?

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

FONT SIZE within programs

Posted: Sat Jul 19, 2008 12:07 PM

Enrico,

yes, right :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion