| OLD | NEW |
| 1 /*************************************************************************** | 1 /*************************************************************************** |
| 2 * | 2 * |
| 3 * Copyright (C) 1998-2013, International Business Machines | 3 * Copyright (C) 1998-2014, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 * | 5 * |
| 6 ************************************************************************/ | 6 ************************************************************************/ |
| 7 | 7 |
| 8 #include "layout/LETypes.h" | 8 #include "layout/LETypes.h" |
| 9 #include "layout/LESwaps.h" | 9 #include "layout/LESwaps.h" |
| 10 | 10 |
| 11 #include "sfnt.h" | 11 #include "sfnt.h" |
| 12 #include "cmaps.h" | 12 #include "cmaps.h" |
| 13 #include <stdio.h> | 13 #include <stdio.h> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 //default: | 114 //default: |
| 115 //printf("Skipping platform id %d\n", platformID); | 115 //printf("Skipping platform id %d\n", platformID); |
| 116 } | 116 } |
| 117 } | 117 } |
| 118 | 118 |
| 119 | 119 |
| 120 if (found) | 120 if (found) |
| 121 { | 121 { |
| 122 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + foundOffs
et); | 122 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + foundOffs
et); |
| 123 //printf("%s:%d: using subtable #%d/%d type %d:%d\n", __FILE__, __LINE__,
foundTable, nSubtables, foundPlatformID, foundPlatformSpecificID); | 123 //printf("%s:%d: using subtable #%d/%d type %d:%d\n", __FILE__, __LINE__,
foundTable, nSubtables, foundPlatformID, foundPlatformSpecificID); |
| 124 (void)foundPlatformID; // Suppress unused variable compiler warnings. |
| 125 (void)foundTable; |
| 126 (void)foundPlatformSpecificID; |
| 124 } else { | 127 } else { |
| 125 printf("%s:%d: could not find subtable.\n", __FILE__, __LINE__); | 128 printf("%s:%d: could not find subtable.\n", __FILE__, __LINE__); |
| 126 return NULL; | 129 return NULL; |
| 127 } | 130 } |
| 128 | 131 |
| 129 le_uint16 tableFormat = SWAPW(subtable->format); | 132 le_uint16 tableFormat = SWAPW(subtable->format); |
| 130 //printf("%s:%d: table format %d\n", __FILE__, __LINE__, tableFormat); | 133 //printf("%s:%d: table format %d\n", __FILE__, __LINE__, tableFormat); |
| 131 | 134 |
| 132 switch (tableFormat) { | 135 switch (tableFormat) { |
| 133 case 4: | 136 case 4: |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 } | 241 } |
| 239 | 242 |
| 240 return 0; | 243 return 0; |
| 241 } | 244 } |
| 242 | 245 |
| 243 CMAPGroupMapper::~CMAPGroupMapper() | 246 CMAPGroupMapper::~CMAPGroupMapper() |
| 244 { | 247 { |
| 245 // parent destructor does it all | 248 // parent destructor does it all |
| 246 } | 249 } |
| 247 | 250 |
| OLD | NEW |