Underline and italic in PDF seems not work

Moderator: Rathinagiri

Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Underline and italic in PDF seems not work

Post by Javier Tovar »

Italia1 wrote:
Sorry for my stupid question :oops: :oops:
No digas eso amigo, simplemente tienes una pregunta! :D :D :D

Saludos
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Underline and italic in PDF seems not work

Post by Javier Tovar »

A lo mejor la pregunta seria, ¿Con "Print System" se puede enviar a un archivo *.PDF en ves de a una impresora?

Saludos

P.D.: Esperemos que alguien nos conteste! :D
Italia1
Posts: 60
Joined: Mon Mar 24, 2014 10:55 am
Location: Italia

Re: Underline and italic in PDF seems not work

Post by Italia1 »

Javier Tovar wrote:
Italia1 wrote:
Sorry for my stupid question :oops: :oops:
No digas eso amigo, simplemente tienes una pregunta! :D :D :D

Saludos
Thanks - Muchas gracias !!! :D :D

Code: Select all

#xcommand @ <Row> , <Col> PRINT [ DATA ] <cText>
is the same command of

Code: Select all

#xcommand @ <Row> , <Col> HPDFPRINT [ DATA ] <cText>
PRINT is more confortable :lol:

Very beatiful users in HMG Forum!! :D

EDIT - With HPDFPRINT someone have underline or italic?
I use the great HMG3.2(stable). Have i nice international HMG to everyone!
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Underline and italic in PDF seems not work

Post by Javier Tovar »

Italia1 wrote:
EDIT - With HPDFPRINT someone have underline or italic?
No amigo, no responden los comandos o a lo mejor nos falta algo. esperemos que alguien con más experiencia nos conteste.

Saludos
Italia1
Posts: 60
Joined: Mon Mar 24, 2014 10:55 am
Location: Italia

Re: Underline and italic in PDF seems not work

Post by Italia1 »

Javier Tovar wrote: No amigo, no responden los comandos o a lo mejor nos falta algo. esperemos que alguien con más experiencia nos conteste.
Saludos
We hope this :D
I think that the solution is in my suggestion of my 1st post, but I don't konw how change the code :oops:
------
Te esperamos todos! :D
Creo que la solución es, de hecho, mi sugerencia en mi primer post. Pero no puedo cambiar el código. :oops:
-----
Lo speriamo tutti! :D
Penso che la soluzione sia nel mio suggerimento fatto nel mio primo post. Ma non so modificare il codice. :oops:
I use the great HMG3.2(stable). Have i nice international HMG to everyone!
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Underline and italic in PDF seems not work

Post by Pablo César »

Italia1 wrote:
Javier Tovar wrote: No amigo, no responden los comandos o a lo mejor nos falta algo. esperemos que alguien con más experiencia nos conteste.
Saludos
We hope this :D
I think that the solution is in my suggestion of my 1st post, but I don't konw how change the code :oops:
------
Te esperamos todos! :D
Creo que la solución es, de hecho, mi sugerencia en mi primer post. Pero no puedo cambiar el código. :oops:
-----
Lo speriamo tutti! :D
Penso che la soluzione sia nel mio suggerimento fatto nel mio primo post. Ma non so modificare il codice. :oops:
Yes gentlemen. You are right ! UNDERLINE, ITALIC and also STRIKEOUT are not working in HMGHPDF. I made also tests in C:\HMG.3.2\hfcl\Samples\HMGHPDFDoc without good results. :(

I also checked in HMGHPDF source code in HMG_HPDF.Prg and seems is missing these properties.

Lets wait for Rathinagiri, whos is concerned in this job and give us any solution.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Italia1
Posts: 60
Joined: Mon Mar 24, 2014 10:55 am
Location: Italia

Re: Underline and italic in PDF seems not work

Post by Italia1 »

Pablo César wrote:Yes gentlemen. You are right ! UNDERLINE, ITALIC and also STRIKEOUT are not working in HMGHPDF. I made also tests in C:\HMG.3.2\hfcl\Samples\HMGHPDFDoc without good results. :(

I also checked in HMGHPDF source code in HMG_HPDF.Prg and seems is missing these properties.

Lets wait for Rathinagiri, whos is concerned in this job and give us any solution.
Great Rathinagiri: we believe in you! Thank you for existing!
Regards and good night from Italy!
I use the great HMG3.2(stable). Have i nice international HMG to everyone!
User avatar
danielmaximiliano
Posts: 2618
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Underline and italic in PDF seems not work

Post by danielmaximiliano »

Hola a todos :
intente modificar la libreria HMGPDF y volverla a construir para que tomepor defecto los siguientes valores y ningun resultado :cry:

Code: Select all

function _HMG_HPDF_PRINT ( nRow, nCol, cFontName, nFontSize, nRColor, nGColor, nBColor, cText, lBold, lItalic, lUnderline, lStrikeout, lColor, lFont, lSize, cAlign )
   local nWidth         := _HMG_SYSDATA[ 150 ][ 4 ]
   local nHeight        := _HMG_SYSDATA[ 150 ][ 5 ]
   local nTextWidth     := 0
   local nxPos          := _HMG_HPDF_MM2Pixel( nCol )
   local nyPos          := nHeight - _HMG_HPDF_MM2Pixel( nRow )
   local oFont          := Nil
   local cFont          := ''
   default cFontName   := ''
   default nFontSize   := 12
   default nRColor     := 0
   default nGColor     := 0
   default nBColor     := 0
   default lBold       := .T.
   default lItalic     := .T.
   default lUnderline  := .T.
   default lStrikeout  := .f.
   default lColor      := .f.
   default lFont       := .f.
   default lSize       := .f.
   default cAlign      := ''

la documentacion de HMGpdf dice :
@..HPDFPRINT
This command is used to render a single line of text data in the specified font, size, color and alignment at the specified row and column.
The text rendered is left aligned unless otherwise specified. Only following Base14 fonts are built-in.

Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique, Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique, Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic, Symbol, ZapfDingbats. The text will be rendered in the current character encoding.

Helvetica is the default font if no fontname is specified. Default fontsize is 12.

True Type Fonts can also be used if the absolute address of the True Type Font file is mentioned. Otherwise the TTF shall be required at the runtime in the same directory as of the executable file.

Sample : HPDFPRINT "The font is Tscparan.TTF" FONT "Tscparan.TTF" size 12
Leyendohttps://github.com/libharu/libharu/wiki/Fonts encontre que hay fuentes Italic o BoldItalic pero no Underline.
puede ser que unicamente "UnderLine" sea soportado con la carga de una fuente TTF subrayada
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Underline and italic in PDF seems not work

Post by Javier Tovar »

Gracias Pablo César y DanielMaximiliano por contestar, esperemos si Rathinagiri tiene una solución! :D

Saludos
User avatar
danielmaximiliano
Posts: 2618
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Underline and italic in PDF seems not work

Post by danielmaximiliano »

Javier Tovar wrote:Gracias Pablo César y DanielMaximiliano por contestar, esperemos si Rathinagiri tiene una solución! :D

Saludos
Solo queda cargar las fuentes TTF con soporte Underline, las internas solo son estas
Built-in base14 fonts

Courier
Courier-Bold
Courier-Oblique
Courier-BoldOblique
Helvetica
Helvetica-Bold
Helvetica-Oblique
Helvetica-BoldOblique
Times-Roman
Times-Bold
Times-Italic
Times-BoldItalic
Symbol
ZapfDingbats

base14 fonts are only able to display the latin1 character set. To use other character sets, an application must use other fonts.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply