summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-02-11 00:05:36 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-24 13:25:27 +0100
commit320e6aa76a286223e3190adce30e8a2276092a08 (patch)
treebbe246c628498a6c8dbf4e8a309e196d941f8039 /include
parentad7828af74c2b9b1c3a224a48f2d1eecc3e23ceb (diff)
downloadmupdf-320e6aa76a286223e3190adce30e8a2276092a08.tar.xz
html: Split glue nodes into space and soft break nodes.
This paves the way for supporting soft hyphens.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/html.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/mupdf/html.h b/include/mupdf/html.h
index 33ee84c8..72b72354 100644
--- a/include/mupdf/html.h
+++ b/include/mupdf/html.h
@@ -195,9 +195,10 @@ struct fz_html_s
enum
{
FLOW_WORD = 0,
- FLOW_GLUE = 1,
+ FLOW_SPACE = 1,
FLOW_BREAK = 2,
- FLOW_IMAGE = 3
+ FLOW_IMAGE = 3,
+ FLOW_SBREAK = 4
};
/* We have to recognise the distinction between render direction
@@ -222,7 +223,7 @@ enum
struct fz_html_flow_s
{
/* What type of node */
- unsigned int type : 2;
+ unsigned int type : 3;
/* Whether this should expand during justification */
unsigned int expand : 1;
@@ -242,6 +243,9 @@ struct fz_html_flow_s
/* The script detected by the bidi code. */
unsigned int script : 8;
+ /* Whether this node breaks the line, determines character to render */
+ unsigned int breaks_line : 1;
+
float x, y, w, h, em;
fz_css_style *style;
union {