diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2006-05-09 22:13:58 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2006-05-09 22:13:58 +0000 |
| commit | 12c616cb89a48a967a7f66e23c57b0ec990ab65d (patch) | |
| tree | 498aa38bb8d3fa3932ca935c238eb1830659523c | |
| parent | 7e9483d0ffc2a400507c250df50dcf5ad3ef0cf8 (diff) | |
| download | halibut-12c616cb89a48a967a7f66e23c57b0ec990ab65d.zip halibut-12c616cb89a48a967a7f66e23c57b0ec990ab65d.tar.gz halibut-12c616cb89a48a967a7f66e23c57b0ec990ab65d.tar.bz2 halibut-12c616cb89a48a967a7f66e23c57b0ec990ab65d.tar.xz | |
When setting up a font, if we've done that font already, return the
existing instance. This saves outputting each font several times.
[originally from svn r6668]
| -rw-r--r-- | bk_paper.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1371,6 +1371,10 @@ static font_data *make_std_font(font_list *fontlist, char const *name) font_encoding *fe; int i; + for (fe = fontlist->head; fe; fe = fe->next) + if (strcmp(fe->font->name, name) == 0) + return fe->font; + /* XXXKERN */ widths = ps_std_font_widths(name); kerns = ps_std_font_kerns(name); |