corrected several errors around type 1 fonts with custom encoding that define the 0 glyph for something other than .notdef. This screws with the order of glyphs in the FreeType scheme, making it inconsistent with the embedding code (which used font glyph indexing). the correction is carried out through doing a mapping between glyph index at font and at free type based on glyph names, or use glyph name where possible
Two corrections from @mgubi :
1. typo in encodedCharachtersList in AbstractContentContext::WriteTextCommandWithDirectGlyphSelection

2. infinite loop when passing 0 as real value in CFFPrimitiveWriter:: WriteRealOperand

also - fixed some warning with using abs for long, by moving to use labs