summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorGeorge Williams <gww@silcom.com>2008-05-02 19:14:58 +0200
committerJuliusz Chroboczek <jch@pps.jussieu.fr>2008-05-02 19:14:58 +0200
commit5cb6dcac85b89deea8263e1b7bcb7714e07063ff (patch)
tree630a8a39ba27dde6c76fc634b14dc729a903f5bd /read.c
parent95a16fb0001abcea6a12b4eb2e1a1d24ab83d5fa (diff)
Fix handling for non-square pixels.
Diffstat (limited to 'read.c')
-rw-r--r--read.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/read.c b/read.c
index 501bc33..497858c 100644
--- a/read.c
+++ b/read.c
@@ -238,20 +238,20 @@ readFile(char *filename, FontPtr font)
if(verbose_flag)
fprintf(stderr, "size %d: %dx%d\n",
i,
- face->available_sizes[i].width,
- face->available_sizes[i].height);
+ face->available_sizes[i].x_ppem >> 6,
+ face->available_sizes[i].y_ppem >> 6);
rc = FT_Set_Pixel_Sizes(face,
- face->available_sizes[i].width,
- face->available_sizes[i].height);
+ face->available_sizes[i].x_ppem >> 6,
+ face->available_sizes[i].y_ppem >> 6);
if(rc != 0) {
fprintf(stderr, "Couldn't set size.\n");
return -1;
}
strike = makeStrike(font,
- face->available_sizes[i].width,
- face->available_sizes[i].height);
+ face->available_sizes[i].x_ppem >> 6,
+ face->available_sizes[i].y_ppem >> 6);
if(strike == NULL) {
fprintf(stderr, "Couldn't allocate strike.\n");
return -1;