ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] (freetype2 | libgd | GD.pm) bug?
@ 2002-03-28 14:05 Andrey Brindeew
  0 siblings, 0 replies; only message in thread
From: Andrey Brindeew @ 2002-03-28 14:05 UTC (permalink / raw)
  To: ALTLinux Mailing List

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

Hi!

Попытался сделать простенький скриптик (вводишь строку, он ее помешает по
центру в картинке фиксированного размера, рисуя максимально возможным
размером шрифта) на Perl.

Рисую с помощью GD.pm

Для центрирования использую GD::Image->stringFT, которая возвращает bounding
box отрисованных букв. Вот здесь и наступаю на грабли: для русских букв он
немного меньше, чем реально отрисованная строка. Чем больше русских букв в
строке, тем больше ошибка. Что характерно, это проявляется лишь для русских
букв. Если в строке присутствуют только Latin-1 символы, то всё совпадает.
Вопрос: где глюк?

Установлены следующие версии библиотек:
freetype2-2.0.6-alt1 (на сайте уже есть 2.0.9!!!)
libpng-1.2.1-alt1
GD.pm 1.38

P.S. В качестве теста использовались следующие файлы шрифтов, полученные
     с сайта MS: Verdana{,b,i,z}.TTF

-- 
WBR, Andrey Brindeew.
"No one person can understand Perl culture completely"
(C) Larry Wall.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-28 14:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-28 14:05 [mdk-re] (freetype2 | libgd | GD.pm) bug? Andrey Brindeew

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git