freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Arial/Times ldot hinting


From: Nigel Tao
Subject: Re: [ft-devel] Arial/Times ldot hinting
Date: Mon, 9 Dec 2013 20:53:26 +1100

On Mon, Dec 9, 2013 at 4:46 PM, Werner LEMBERG <address@hidden> wrote:
>> I've tried current git and 2.5.2, and unless I screwed up, ftgrid
>> shows no difference (apart from some new debugging XXX and ptsize
>> printf calls): the "l"s in the "ldot"s are still off-grid.
>
> Interesting.  I've just taken the 2.5.2 tarballs and did a standard
> build without changing any configuration macros

Interesting. I also did a standard build and still see an horizontal
offset (and the XXX printf). Is Ubuntu 12.04's version of Times New
Roman just too old? IIUC, "sudo apt-get install
ttf-mscorefonts-installer" downloads the fonts from
http://sourceforge.net/projects/corefonts/files/the%20fonts/final/ and
the timestamps on that page say 2002-08-15. Grepping the times.ttx
file gives "Version 2.82". Is this ldot thing essentially a font bug
that was fixed (but not in Ubuntu's older version)?

--------
$ ls -l
total 1824
-rw-rw-r-- 1 nt nt 1676373 Dec  9 20:28 freetype-2.5.2.tar.bz2
-rw-rw-r-- 1 nt nt  185966 Dec  9 20:28 ft2demos-2.5.2.tar.bz2
$ sha1sum *
72731cf405b9f7c0b56d144130a8daafa262b729  freetype-2.5.2.tar.bz2
59b9be0a1ae2cc88d6892533ab83927e32d750e2  ft2demos-2.5.2.tar.bz2
$ tar xf freetype-2.5.2.tar.bz2
$ tar xf ft2demos-2.5.2.tar.bz2
$ ln -s freetype-2.5.2 freetype2
$ cd freetype2
$ ./configure > /tmp/x.configure
$ make > /tmp/x.make1
$ cd ../ft2demos-2.5.2
$ make > /tmp/x.make2
In file included from /usr/include/stdio.h:934:0,
                 from /run/shm/tmp/ft2demos-2.5.2/src/ttdebug.c:14:
In function ‘snprintf’,
    inlined from ‘main’ at /run/shm/tmp/ft2demos-2.5.2/src/ttdebug.c:1908:14:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:3: warning: call to
__builtin___snprintf_chk will always overflow destination buffer
[enabled by default]
/run/shm/tmp/ft2demos-2.5.2/src/ftdiff.c: In function ‘main’:
/run/shm/tmp/ft2demos-2.5.2/src/ftdiff.c:1445:16: warning: ignoring
return value of ‘fread’, declared with attribute warn_unused_result
[-Wunused-result]
/run/shm/tmp/ft2demos-2.5.2/src/ftcommon.c: In function ‘FTDemo_Install_Font’:
/run/shm/tmp/ft2demos-2.5.2/src/ftcommon.c:429:14: warning: ignoring
return value of ‘fread’, declared with attribute warn_unused_result
[-Wunused-result]
$ ls -l /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf
-rw-r--r-- 1 root root 330412 May 11  2000
/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf
$ sha1sum /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf
d9d9ad4ba85fcd9dbe69e7866613756f1dbb4e97
/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf
$ ./bin/ftgrid -f 274 13
/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf
ptsize =13
XXX x_ppem=13 y_ppem=13 width=2240 height=1152
Execution completed successfully.
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
--------

Let me know if you want the /tmp/x.configure or /tmp/x.make{1,2} files.

Attachment: ldot-2.5.2.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]