Font code128.ttf in fivewin!? Nobody knows?

Font code128.ttf in fivewin!? Nobody knows?

Postby JC » Fri Mar 28, 2008 6: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!

Code: Select all  Expand view
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

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

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

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

Postby fafi » Mon Mar 31, 2008 1:04 pm

Code: Select all  Expand view

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

Postby JC » Mon Mar 31, 2008 1:06 pm

fafi wrote:
Code: Select all  Expand view

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

Postby fafi » Mon Mar 31, 2008 1:14 pm

User avatar
fafi
 
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am

Postby JC » Mon Mar 31, 2008 1:45 pm



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

Postby JC » Mon Mar 31, 2008 10:14 pm



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

Postby Kleyber » Tue Apr 01, 2008 7:02 pm

JC,

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

In your dialog you define this way:

Code: Select all  Expand view
oFld:aDialogs[ 1 ]:bPainted = { | hDC | DrawTestBarcode( hDC, cCodBar ) }


And in the function DrawTestBarcode:

Code: Select all  Expand view
//----------------------------------------------------------------------------//
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
Kleyber
 
Posts: 581
Joined: Tue Oct 11, 2005 11:28 am
Location: São Luiz, Brasil

Postby JC » Tue Apr 01, 2008 8:47 pm

Kleyber wrote:JC,

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

In your dialog you define this way:

Code: Select all  Expand view
oFld:aDialogs[ 1 ]:bPainted = { | hDC | DrawTestBarcode( hDC, cCodBar ) }


And in the function DrawTestBarcode:

Code: Select all  Expand view
//----------------------------------------------------------------------------//
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
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Barcode 128

Postby ukoenig » Wed Apr 02, 2008 1: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Barcode 128

Postby JC » Wed Apr 02, 2008 2: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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Barcode 128

Postby ukoenig » Wed Apr 02, 2008 2: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 ?

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

Re: Barcode 128

Postby JC » Wed Apr 02, 2008 2: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 ?

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

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 30 guests