[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
Text Justification
Moderator: Rathinagiri
- Amarante
- Posts: 182
- Joined: Fri Apr 27, 2012 9:44 pm
- DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL
- Location: Araruama-RJ, Brazil
Text Justification
- Attachments
-
- Zjust_Test.rar
- (7.63 KiB) Downloaded 188 times
Re: Text Justification
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
- 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
Gracias Andyandyglezl wrote:Hola amarante
quiza esto es lo que buscas...
viewtopic.php?f=36&t=3701&p=34290#p34290
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Text Justification
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
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
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- 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
Obrigado Pablo,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
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!!!