Page 1 of 1

Text Justification

Posted: Mon May 19, 2014 8:33 pm
by Amarante
[English]-------------------------
I am using Print System for print text with justified alignment.
I created a routine for justification. It works very well if used with a monospaced font. But I need to use other types of fonts and my routine is not for this (see attached test). Does anyone have another routine or know how to calculate the spacing for TrueType fonts?
I thank any help.
Amarante

[portuguese]-------------------------
Justificação de Texto
Estou usando Print System para imprimir um texto com alinhamento justificado.
Eu criei uma rotina pra justificação. Ela funciona muito bem se for usada com uma font monoespaçada. Mas eu preciso usar outros tipos de fonts e a minha rotina não serve para isso (veja o test em anexo). Será que alguem tem uma outra rotina ou sabe como calcular o espaçamento para fontes TrueType?
Desde já agradeço qualquer ajuda.
Amarante

Re: Text Justification

Posted: Mon May 19, 2014 8:59 pm
by andyglezl
Hola amarante

quiza esto es lo que buscas...

viewtopic.php?f=36&t=3701&p=34290#p34290

Re: Text Justification

Posted: Mon May 19, 2014 9:02 pm
by Amarante
andyglezl wrote:Hola amarante

quiza esto es lo que buscas...

viewtopic.php?f=36&t=3701&p=34290#p34290
Gracias Andy

Text Justification

Posted: Mon May 19, 2014 9:08 pm
by Pablo César
Oi Amarante,

Talvez a função do RichEdit ? Se bem que tanto da HMG como da Minigui Extended, não vi bons resultados no botão de alinhar texto justificado. Mas eu começaria por ai.

Agora lembrando algo eu estive pesquisando, mas não lembro se se aplica à fontes de tamanho fixo. Mas veja talvez isto leve a algo: viewtopic.php?p=19453#p19453

Re: Text Justification

Posted: Mon May 19, 2014 9:24 pm
by Amarante
Pablo César wrote:Oi Amarante,

Talvez a função do RichEdit ? Se bem que tanto da HMG como da Minigui Extended, não vi bons resultados no botão de alinhar texto justificado. Mas eu começaria por ai.

Agora lembrando algo eu estive pesquisando, mas não lembro se se aplica à fontes de tamanho fixo. Mas veja talvez isto leve a algo: viewtopic.php?p=19453#p19453
Obrigado Pablo,
Eu também estive estudando RichEdit, vou verificar sua indicação....To achando que a Saida é mesmo a contrução de uma rotina de justificação.
valeu amigo!!!