![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Файл
Юрий К © (2003-06-09 17:15:00)Загружаю файл "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-10 14:34:00) [1]
Может прислать проект с файлом "acrobat.txt", чтобы не теоретизировать?
Юрий К (2003-06-10 14:27:00) [2]
RE_Font не помогает, если убираешь из текста символы "®", то текст отображается нормально. Если эти символы присутствуют, то начиная с него, всё дальше показывается очень мелко. Тот же текст с символами "®" в VCL проекте отображается без проблем.
Кладов (2003-06-09 21:09:00) [3]
RE_Font пробовали?