summaryrefslogtreecommitdiff
path: root/pcl/pcfsel.c
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2001-03-06 06:12:26 +0000
committerHenry Stiles <henry.stiles@artifex.com>2001-03-06 06:12:26 +0000
commit37c6e4a5ecf6314b6fdf7cc5f97ebcb6e8bdef85 (patch)
tree5ad6f68ee3ab784db4cd406e3e15877eaff8dd48 /pcl/pcfsel.c
parent173fdef9cfab0896fdd9339fe07659d9127706bb (diff)
makes pjl font number a criteria (least important) in font selection.
I am not sure this is correct, but I must have written the code for some reason. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1274 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pcl/pcfsel.c')
-rw-r--r--pcl/pcfsel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pcl/pcfsel.c b/pcl/pcfsel.c
index 90ec7bcb0..acb6c9559 100644
--- a/pcl/pcfsel.c
+++ b/pcl/pcfsel.c
@@ -32,6 +32,7 @@ typedef enum {
score_typeface,
score_location,
score_orientation,
+ score_fontnumber,
score_limit
} score_index_t;
typedef int match_score_t[score_limit];
@@ -48,6 +49,7 @@ const char *score_name[] = {
"typeface",
"location",
"orientation",
+ "fontnumber"
};
private void
@@ -236,6 +238,9 @@ score_match(const pcl_state_t *pcs, const pcl_font_selection_t *pfs,
0;
}
+ /* 10. font number */
+ score[score_fontnumber] = 0x1000000 - fp->params.pjl_font_number;
+
#ifdef DEBUG
if ( gs_debug_c('=') )
{ int i;