FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Font code128.ttf in fivewin!? Nobody knows?
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Fri Mar 28, 2008 06:29 PM
I have dowloaded the code128.ttf font at http://rapidshare.com/files/103780544/code128.ttf.html

This font works fine in windows on notepad.

How I can use this font in my object get into my fivewin application?

I tried with this code below, but don't fun!

REDEFINE GET oGet ID 4001 OF oDlg FONT ( TFont():new( "Code 128", 0, 13 ) )



Thanks!
Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Mon Mar 31, 2008 12:36 PM

Nobody knows?

It's possible to implement this font in fivewin? How I can do?

Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 169
Joined: Mon Feb 25, 2008 02:42 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Mon Mar 31, 2008 12:45 PM
How to test ?

Where is the font ?

I have dowloaded the code128.ttf font at http://freebarcodefonts.dobsonsw.com/#Code128

not found, it's not free

Regards
Fafi
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Mon Mar 31, 2008 12:47 PM
fafi wrote:How to test ?

Where is the font ?

I have dowloaded the code128.ttf font at http://freebarcodefonts.dobsonsw.com/#Code128

not found, it's not free

Regards
Fafi


Sorry Fafi! I have posted with a new link to download at http://rapidshare.com/files/103780544/code128.ttf.html
Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 169
Joined: Mon Feb 25, 2008 02:42 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Mon Mar 31, 2008 01:04 PM
#include "fivewin.ch"

function main()

cBarcode := spac(20)

define font oFont name "Code128bWinLarge" size 0,20

define dialog oDlg from 1,1 to 300,300 pixel

@2,2 say "Wawan Dahlan" FONT oFont of oDlg pixel

@30,2 get cBarcode size 100,40 of oDlg pixel font oFont

activate dialog oDlg

return nil


compiled by clipper and fivewin 1.92

Your problem is name of barcode installed not code 128 but "Code128bWinLarge"

REDEFINE GET oGet ID 4001 OF oDlg FONT ( TFont():new( "Code 128", 0, 13 ) )

Regards
Fafi
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Mon Mar 31, 2008 01:06 PM
fafi wrote:
#include "fivewin.ch"

function main()

cBarcode := spac(20)

define font oFont name "Code128bWinLarge" size 0,20

define dialog oDlg from 1,1 to 300,300 pixel

@2,2 say "Wawan Dahlan" FONT oFont of oDlg pixel

@30,2 get cBarcode size 100,40 of oDlg pixel font oFont

activate dialog oDlg

return nil


compiled by clipper and fivewin 1.92

Your problem is name of barcode installed not code 128 but "Code128bWinLarge"

REDEFINE GET oGet ID 4001 OF oDlg FONT ( TFont():new( "Code 128", 0, 13 ) )

Regards
Fafi


Fafi, how I can get the true name of font? Where is describe?
Thanks for help!
Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 169
Joined: Mon Feb 25, 2008 02:42 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Mon Mar 31, 2008 01:14 PM
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Mon Mar 31, 2008 01:45 PM
fafi wrote:here :

http://rapidshare.com/files/103785276/f ... t.zip.html

or barlib from Mr. Enrico
http://rapidshare.com/files/103786232/BarLib.rar.html

regards
fafi


Thanks Fafi! It's works very fine!
Thanks very much!
Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Mon Mar 31, 2008 10:14 PM
fafi wrote:here :

http://rapidshare.com/files/103785276/f ... t.zip.html

or barlib from Mr. Enrico
http://rapidshare.com/files/103786232/BarLib.rar.html

regards
fafi


Fafi, with this lib Barlib, I can print the barcode... but, I want to show this same code into a dialog, for example.... How another way to do it?
Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 581
Joined: Tue Oct 11, 2005 11:28 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Tue Apr 01, 2008 07:02 PM
JC,

There is the VRDBCode which does what you want. Example:

In your dialog you define this way:

oFld:aDialogs[ 1 ]:bPainted = { | hDC | DrawTestBarcode( hDC, cCodBar ) }


And in the function DrawTestBarcode:

//----------------------------------------------------------------------------//
Static FUNCTION DrawTestBarcode( hDC,  cCodBar )
// Mostrar o cĂłdigo de barras na dialog
//----------------------------------------------------------------------------//

   LOCAL oBC3

   @ 266, 413 BARCODE oBC3 DEVICE hDC PROMPT cCodbar TYPE EAN13 SIZE 300, 45

   SHOWBARCODE oBC3

RETURN (.T.)


Is this what you need?

Regards,
Kleyber Derick



FWH / xHb / xDevStudio / SQLLIB
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Font code128.ttf in fivewin!? Nobody knows?
Posted: Tue Apr 01, 2008 08:47 PM
Kleyber wrote:JC,

There is the VRDBCode which does what you want. Example:

In your dialog you define this way:

oFld:aDialogs[ 1 ]:bPainted = { | hDC | DrawTestBarcode( hDC, cCodBar ) }


And in the function DrawTestBarcode:

//----------------------------------------------------------------------------//
Static FUNCTION DrawTestBarcode( hDC,  cCodBar )
// Mostrar o cĂłdigo de barras na dialog
//----------------------------------------------------------------------------//

   LOCAL oBC3

   @ 266, 413 BARCODE oBC3 DEVICE hDC PROMPT cCodbar TYPE EAN13 SIZE 300, 45

   SHOWBARCODE oBC3

RETURN (.T.)


Is this what you need?

Regards,


Kleyber... I don't know! Send me a prg example for I'm testing!
Thanks
Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Barcode 128
Posted: Wed Apr 02, 2008 01:56 PM

Hello,

I can give you the code as a matrix,
with that, you don't need a font.

May this help ?

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: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Barcode 128
Posted: Wed Apr 02, 2008 02:04 PM
ukoenig wrote:Hello,

I can give you the code as a matrix,
with that, you don't need a font.

May this help ?

Regards
Uwe


Oh Yes Uwe!! This help me very much! It's independent!!
Please, send me!

PS.: if you have a barcode 2of5 interleaved... I need too!
Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Barcode 128
Posted: Wed Apr 02, 2008 02:15 PM
Hello,

here is a sample of a new project
I choosed 128 AUTO
there are no installed fonts at all.
But there are more 128 ( AUTO, A, B and C )
What do you need ?



Regards

Uwe[/img]
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: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Barcode 128
Posted: Wed Apr 02, 2008 02:22 PM
ukoenig wrote:Hello,

here is a sample of a new project
I choosed 128 AUTO
there are no installed fonts at all.
But there are more 128 ( AUTO, A, B and C )
What do you need ?



Regards

Uwe[/img]



Really, I need two things for they codes ( EAN13, CODE39, CODE128 and INTER 2of5 ):


First: I need to draw the barcode in dialog or image on fly on change a get ( like when I using a windows ttf font into a object get )
Second: The possibility to printing this same barcode


Uwe, it's possible with your tool?
Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9