From a3785935df081674d048655048984bcba09f8387 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 2 Mar 2016 08:03:53 -0800 Subject: Rejig Bidirectional and Text code. We move to using bidirectional "levels" throughout. This should give us better behaviour vis-a-vis nested l2r/l2r text. This also allows us to carry xps levels throughout with no loss of information. This also avoids the need to special case numbers. We accordingly carry more information into fz_text. As well as wmode, also hold additional details about the text spans. We now include the directionality of the bidi level text (either as derived from bidi code, or from the original document (e.g. xps)), the directionality of text (as specified in the original document (e.g. html)), and the language of the text (if specified in the original document). --- source/fitz/font.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/fitz/font.c') diff --git a/source/fitz/font.c b/source/fitz/font.c index 1bac6efc..8f598be1 100644 --- a/source/fitz/font.c +++ b/source/fitz/font.c @@ -1442,6 +1442,8 @@ fz_encode_character(fz_context *ctx, fz_font *font, int ucs) return ucs; } +/* FIXME: This should take language too eventually, to allow for fonts where we can select different + * languages using opentype features. */ int fz_encode_character_with_fallback(fz_context *ctx, fz_font *user_font, int unicode, int script, fz_font **out_font) { -- cgit v1.2.3