Вниз
Скачать: CL | DM;

Файл   Найти похожие ветки 

 
Юрий К   (2003-06-09 17:15) [0]

Загружаю файл "acrobat.txt", который имеет следующее начало:
" There"s more to Acrobat®
than the Reader!
Create and enhance PDF files with Adobe® Acrobat 4.0 software
How often does this happen to you?
You complete an important document just under the wire and send it off to a colleague as an e-mail attach-
ment, only to hear that she couldn"t open the file-she works on a different platform. Or maybe she doesn"t
( sFilename, reText, False) Загружаю файл "acrobat.txt", который имеет следующее начало:
" There"s more to Acrobat®
than the Reader!
Create and enhance PDF files with Adobe® Acrobat 4.0 software
How often does this happen to you?
You complete an important document just under the wire and send it off to a colleague as an e-mail attach-
ment, only to hear that she couldn"t open the file-she works on a different platform. Or maybe she doesn"t
have the right application loaded.
... и т.д.",
используя код:
red.Font.FontHeight := red.Font.FontHeight+1;
red.RE_LoadFromFile(sFilename, reText, False)ж
// Changing FontHeight because text is showed with default FontHeight
red.Font.FontHeight := red.Font.FontHeight-1;

В результате получается следующее - "There"s more to Acrobat" показывается нормально, а остальное показывается так мелко, что просто ничего не разобрать. Если убираю из текста символ "®", то нормально показывается чуть больший текст, а именно
" There"s more to Acrobat
than the Reader!
Create and enhance PDF files with Adobe".
Как-то на показ влияют некоторые символы. Что нужно сделать для нормального отображения текста.
Если то же делать из VCLRichEdit, то там всё нормально отображается.
В чём же дело, что не так?


 
Кладов   (2003-06-09 21:09) [1]

RE_Font пробовали?


 
Юрий К   (2003-06-10 14:27) [2]

RE_Font не помогает, если убираешь из текста символы "®", то текст отображается нормально. Если эти символы присутствуют, то начиная с него, всё дальше показывается очень мелко. Тот же текст с символами "®" в VCL проекте отображается без проблем.


 
Юрий К   (2003-06-10 14:34) [3]

Может прислать проект с файлом "acrobat.txt", чтобы не теоретизировать?



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.017 c
14-94192
Ihor Osov'yak
2004-02-05 17:29
2004.02.29
Тема курсового по ОПП..


1-93872
Ricko
2004-02-16 11:49
2004.02.29
АвтоСкролл в Listview


1-93961
Гиричев Руслан
2004-02-16 20:59
2004.02.29
Как выделить всю строку на которой находится курсор (в memo и ric


1-93959
Pahan_
2004-02-17 14:51
2004.02.29
TreeView и Data в узлах


3-93788
Mr. Chel
2004-02-03 18:06
2004.02.29
Fields Editor




   Наверх