Text Justification

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
Amarante
Posts: 182
Joined: Fri Apr 27, 2012 9:44 pm
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL
Location: Araruama-RJ, Brazil

Text Justification

Post 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
Attachments
Zjust_Test.rar
(7.63 KiB) Downloaded 188 times
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Text Justification

Post by andyglezl »

Hola amarante

quiza esto es lo que buscas...

viewtopic.php?f=36&t=3701&p=34290#p34290
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
Amarante
Posts: 182
Joined: Fri Apr 27, 2012 9:44 pm
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL
Location: Araruama-RJ, Brazil

Re: Text Justification

Post by Amarante »

andyglezl wrote:Hola amarante

quiza esto es lo que buscas...

viewtopic.php?f=36&t=3701&p=34290#p34290
Gracias Andy
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Text Justification

Post 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
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Amarante
Posts: 182
Joined: Fri Apr 27, 2012 9:44 pm
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL
Location: Araruama-RJ, Brazil

Re: Text Justification

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