summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegafonts/font_routines.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-12-20 14:42:43 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-12-20 14:42:43 +0000
commitae9ca1e2640b2a90c0dbb695f95bc6c3d36d42e2 (patch)
treef3514c83f8aa921eece2825fafe48196d8904a5b /Build/source/texk/web2c/omegafonts/font_routines.c
parent5da58d536ebfbdf0ee8fc3bf0a0999a9098e2bb2 (diff)
ovp2ovf & Co: Bug fix and new test case
git-svn-id: svn://tug.org/texlive/trunk@24887 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/omegafonts/font_routines.c')
-rw-r--r--Build/source/texk/web2c/omegafonts/font_routines.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/omegafonts/font_routines.c b/Build/source/texk/web2c/omegafonts/font_routines.c
index c8557bd0a67..a7966590b28 100644
--- a/Build/source/texk/web2c/omegafonts/font_routines.c
+++ b/Build/source/texk/web2c/omegafonts/font_routines.c
@@ -446,7 +446,15 @@ get_hex(unsigned char c)
void
set_select_font(unsigned f)
{
- append_command_2(DVI_FNT_NUM_0, DVI_FNT_NUM_63, DVI_FNT_1, f);
+ unsigned i;
+
+ for (i = 0; i < no_fonts; i++)
+ if (f == font_table[i].font_number) {
+ append_command_2(DVI_FNT_NUM_0, DVI_FNT_NUM_63, DVI_FNT_1, i);
+ return;
+ }
+
+ internal_error_1("undefined MAPFONT %d cannot be selected", f);
}
void