Font code128.ttf in fivewin!? Nobody knows?

User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Font code128.ttf in fivewin!? Nobody knows?

Post by JC »

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!

Code: Select all | Expand

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



Thanks!
Last edited by JC on Mon Mar 31, 2008 12:48 pm, edited 2 times in total.
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
User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Post by JC »

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
User avatar
fafi
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am

Post by fafi »

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
User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Post by JC »

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
User avatar
fafi
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am

Post by fafi »

Code: Select all | Expand


#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
User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Post by JC »

fafi wrote:

Code: Select all | Expand


#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
User avatar
fafi
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am

Post by fafi »

User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Post by JC »



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
User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Post by JC »



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
User avatar
Kleyber
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Post by Kleyber »

JC,

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

In your dialog you define this way:

Code: Select all | Expand

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


And in the function DrawTestBarcode:

Code: Select all | Expand

//----------------------------------------------------------------------------//
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
User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Post by JC »

Kleyber wrote:JC,

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

In your dialog you define this way:

Code: Select all | Expand

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


And in the function DrawTestBarcode:

Code: Select all | Expand

//----------------------------------------------------------------------------//
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
User avatar
ukoenig
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Barcode 128

Post by ukoenig »

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.
User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Re: Barcode 128

Post by JC »

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
User avatar
ukoenig
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Barcode 128

Post by ukoenig »

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 ?

Image

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.
User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Re: Barcode 128

Post by JC »

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 ?

Image

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
Post Reply