Fix a couple of bugs in c-string generator
Forms: remove unhelpful type distinction
Forms: implement library api for handling list boxes and combo boxes
Handle glyphs that are too large to render as pixmaps.
Fall back to character path rendering if stroked text uses a dash pattern.

The FT_Stroker doesn't support dash patterns. Fall back to the normal
path rendering, same as with glyphs that are too big to fit the cache.
Forms: partial handling of utf8 output from javascript
Update pdf_to_utf8 to handle either a stream or a string

Also change first argument from fz_context to pdf_document in each
of pdf_to_utf8, pdf_to_utf8_name, pdf_to_ucs2 and pdf_to_ucs2_name
Forms: convert strings from pdf to utf8 before passing to the js engine
Fix broken pdf_write functionality.

Since I implemented linearisation, any invocation that hasn't used
garbage collection has produced broken files, due to every object
being marked as freed. This was because I'd forgotten to ever set
the use_list markers to be 1. Fixed here.
Fix missing diagram in 1522*.pdf

Since the commit to replace abs/min/max/clamp with inline versions,
"1522 - diagramm missing above 88 pc zoom.pdf" has been missing a
diagram. This is because the diagram contains sections like:

 -2147483648 -2147483648 m
 -2147483648 2147483647 l
  2147483647 2147483647 l
  2147483647 -2147483648 l

These extreme values, when transformed would give floating point values
that when naively cast down to int, flip sign (e.g. extreme positive
when cast to int becomes extreme negative).

I had been relying on the cast down giving sane results to enable me to
use fz_clampi. Revert to using fz_clamp and all is fine.
Remove pointless test.

Variable i can never be zero at this point. The desired point of testing
against i was to ensure that the test did not evaluate true at the
first run, and the other parts of the condition are sufficent to
ensure this, so just remove the test on i.
Forms: fix pdf_text_stride not handling negative values of 'room'

room can become negative after a character has been forced into a thin text
field
Improve mudraw generation of .mjs scripts

Generate example data appropriate to the type of field.
Attempt to load CID fonts with invalid cid collections.

Warn instead of throwing an error. Fixes file in
http://code.google.com/p/sumatrapdf/issues/detail?id=1842
Pass original font name to fz_new_font from PDF interpreter.

Improves text device output when using substitute fonts.
Fixes bug #693019.
Prefer the more specific name if BaseName and FontName differ.

Also strip the subset prefix.
Give precedence to /Subtype field when deciding on font encodings.

Fixes bug where Symbol is not embedded but encoded as a TrueType but the
built-in font is a Type1.

http://code.google.com/p/sumatrapdf/issues/detail?id=1310
Use FT_ENCODING_MS_SYMBOL encoding for symbolic TrueType fonts.

Fixes http://code.google.com/p/sumatrapdf/issues/detail?id=1815
Don't encode MS-Symbol encoded fonts by glyph names.

Fix bug http://code.google.com/p/sumatrapdf/issues/detail?id=1618
Only warn if ToUnicode CMap cannot be loaded.