(name)
| 30973 | return newWidths; |
| 30974 | } |
| 30975 | function getXfaFontDict(name) { |
| 30976 | const widths = getXfaFontWidths(name); |
| 30977 | const dict = new Dict(null); |
| 30978 | dict.set("BaseFont", Name.get(name)); |
| 30979 | dict.set("Type", Name.get("Font")); |
| 30980 | dict.set("Subtype", Name.get("CIDFontType2")); |
| 30981 | dict.set("Encoding", Name.get("Identity-H")); |
| 30982 | dict.set("CIDToGIDMap", Name.get("Identity")); |
| 30983 | dict.set("W", widths); |
| 30984 | dict.set("FirstChar", widths[0]); |
| 30985 | dict.set("LastChar", widths.at(-2) + widths.at(-1).length - 1); |
| 30986 | const descriptor = new Dict(null); |
| 30987 | dict.set("FontDescriptor", descriptor); |
| 30988 | const systemInfo = new Dict(null); |
| 30989 | systemInfo.set("Ordering", "Identity"); |
| 30990 | systemInfo.set("Registry", "Adobe"); |
| 30991 | systemInfo.set("Supplement", 0); |
| 30992 | dict.set("CIDSystemInfo", systemInfo); |
| 30993 | return dict; |
| 30994 | } |
| 30995 | |
| 30996 | ;// ./src/core/ps_parser.js |
| 30997 |
no test coverage detected