(value, // TODO(#963): Use a union type for this. fontName, mode)
| 5260 | */ |
| 5261 | |
| 5262 | const lookupSymbol = function lookupSymbol(value, // TODO(#963): Use a union type for this. |
| 5263 | fontName, mode) { |
| 5264 | // Replace the value with its replaced value from symbol.js |
| 5265 | if (symbols[mode][value] && symbols[mode][value].replace) { |
| 5266 | value = symbols[mode][value].replace; |
| 5267 | } |
| 5268 | |
| 5269 | return { |
| 5270 | value: value, |
| 5271 | metrics: getCharacterMetrics(value, fontName, mode) |
| 5272 | }; |
| 5273 | }; |
| 5274 | /** |
| 5275 | * Makes a symbolNode after translation via the list of symbols in symbols.js. |
| 5276 | * Correctly pulls out metrics for the character, and optionally takes a list of |
no test coverage detected