diff options
Diffstat (limited to 'src/stl_binary_reader.cc')
| -rw-r--r-- | src/stl_binary_reader.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/stl_binary_reader.cc b/src/stl_binary_reader.cc index 8d7befb..0c24a14 100644 --- a/src/stl_binary_reader.cc +++ b/src/stl_binary_reader.cc @@ -110,6 +110,21 @@ STLBinaryReader::STLBinaryReader (istream& in) sub.italic = italic; sub.underline = underline; + /* XXX: not sure what to do with JC = 0, "unchanged presentation" */ + int const h = get_int (14, 1); + switch (h) { + case 0: + case 2: + sub.horizontal_position = CENTRE; + break; + case 1: + sub.horizontal_position = LEFT; + break; + case 3: + sub.horizontal_position = RIGHT; + break; + } + /* Loop over characters */ string text; for (size_t j = 0; j < lines[i].size(); ++j) { |
