diff options
author | Roozbeh Pournader <roozbeh@sharif.edu> | 2006-05-25 16:21:57 +0000 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@sharif.edu> | 2006-05-25 16:21:57 +0000 |
commit | 1a136171c27d981572846db42171b7b8756857d6 (patch) | |
tree | 348ecfe4a5de906368392f43189762e8f7a0411a /Build/source/texk/web2c/omegafonts/parse_ofm.c | |
parent | 7b093287e5762fc5d8d7b9654645434c292de193 (diff) |
fixed a 1-off offset bug. fixed the default value of font_at.
git-svn-id: svn://tug.org/texlive/trunk@1592 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/omegafonts/parse_ofm.c')
-rw-r--r-- | Build/source/texk/web2c/omegafonts/parse_ofm.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/omegafonts/parse_ofm.c b/Build/source/texk/web2c/omegafonts/parse_ofm.c index 9dc839d382d..82eb53b2237 100644 --- a/Build/source/texk/web2c/omegafonts/parse_ofm.c +++ b/Build/source/texk/web2c/omegafonts/parse_ofm.c @@ -4,6 +4,7 @@ This file is part of Omega, which is based on the web2c distribution of TeX, Copyright (c) 1994--2001 John Plaice and Yannis Haralambous +Copyright (C) 2005, 2006 Roozbeh Pournader Omega is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -119,10 +120,10 @@ ofm_organize(void) if (lf==0) { /* This is not a TFM file, it is an OFM-file */ ofm_on = TRUE; - /* next line edited by Thomas Esser, based on a patch send + /* next line edited by Thomas Esser, based on a patch sent * by Hossein Movahhedian. The old code had " + 1" - * instead of "+ 2" and caused lots of segfaults */ - ofm_level = ofm[2]*0x100 + ofm[3] + 2; + * instead of "+ OFM_LEVEL0" and caused lots of segfaults */ + ofm_level = ofm[2]*0x100 + ofm[3] + OFM_LEVEL0; if (ofm[4]>127) fatal_error_0("File length is negative"); lf = ofm[4]*0x1000000 + ofm[5]*0x10000 + ofm[6]*0x100 + ofm[7]; @@ -323,7 +324,7 @@ ofm_read_simple(void) { if (ofm_on==TRUE) { - print_ofm_level(ofm_level-1); + print_ofm_level(ofm_level-OFM_LEVEL0); print_font_dir(font_dir); } header = (char *) ofm+check_sum_pos; |