Dale Cieslak 33c9787d10 Fixes #13526 so that BFont::Blocks properly set bitmask for Unicode blocks in a font.
ParseFcMap had several logic errors.
- fixed variable being initialized in the wrong part of the loops
- fixed problem of ANDing bit with 0x8 instead of 0x1
- changed some variable names; 'foundStartBlock' implies a boolean but
it is a block number, so it is now just 'startBlock'
- added const BITS_PER_BLOCK for magic number 32
- added short-circuit for empty full or partial blocks
- initialized variables to -1 when 0 is a valid value
- added code to handle when the end of a block is reached and a range
was started but never finished.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #13526
2017-05-22 20:53:12 +02:00
..
2017-04-01 12:40:39 -04:00
2016-08-07 22:06:24 +02:00