summaryrefslogtreecommitdiff
path: root/bk_paper.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2007-01-07 11:48:58 +0000
committerBen Harris <bjh21@bjh21.me.uk>2007-01-07 11:48:58 +0000
commit2a37bd613db88aeb4f35373d88e38fea7f71b2a8 (patch)
tree481c46766c50281ecfef3fddcb7851f83af33bd5 /bk_paper.c
parentfc100d7c4c2202f70b9550f6c00ceb0a40ba7c09 (diff)
downloadhalibut-2a37bd613db88aeb4f35373d88e38fea7f71b2a8.zip
halibut-2a37bd613db88aeb4f35373d88e38fea7f71b2a8.tar.gz
halibut-2a37bd613db88aeb4f35373d88e38fea7f71b2a8.tar.bz2
halibut-2a37bd613db88aeb4f35373d88e38fea7f71b2a8.tar.xz
Add a mechanism for disabling ligature substitution for an entire paragraph
and apply it to code paragraphs. [originally from svn r7069]
Diffstat (limited to 'bk_paper.c')
-rw-r--r--bk_paper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bk_paper.c b/bk_paper.c
index ae5a246..ab6472e 100644
--- a/bk_paper.c
+++ b/bk_paper.c
@@ -1106,6 +1106,7 @@ static para_data *make_para_data(int ptype, int paux, int indent, int rmargin,
pdata->rect_type = RECT_NONE;
pdata->contents_entry = NULL;
pdata->justification = JUST;
+ pdata->extraflags = 0;
/*
* Choose fonts for this paragraph.
@@ -2209,6 +2210,7 @@ static int render_text(page_data *page, para_data *pdata, line_data *ldata,
FONT_CODE);
if (style == word_Code || style == word_WeakCode) flags |= RS_NOLIG;
+ flags |= pdata->extraflags;
if (type == word_Normal) {
str = text->text;
@@ -2482,6 +2484,7 @@ static para_data *code_paragraph(int indent, word *words, paper_conf *conf)
pdata->rect_type = RECT_NONE;
pdata->contents_entry = NULL;
pdata->justification = LEFT;
+ pdata->extraflags = RS_NOLIG;
for (; words; words = words->next) {
wchar_t *t, *e, *start;
@@ -2612,6 +2615,7 @@ static para_data *rule_paragraph(int indent, paper_conf *conf)
pdata->rect_type = RECT_RULE;
pdata->contents_entry = NULL;
pdata->justification = LEFT;
+ pdata->extraflags = 0;
standard_line_spacing(pdata, conf);