| <<<Back 1 day (to 2019/07/24) | Fwd 1 day (to 2019/07/26) >>> | 20190725 |
chrisl | kens: ping | 13:21.58 |
kens | pong | 13:22.08 |
chrisl | kens: How about moving the Encoding construction stuff from pdf_font3.c into a type agnostic place, so it can called for other font types? | 13:23.05 |
kens | I've no problem with that, do you think we'll need ti for other types ? | 13:23.33 |
| If so pdf_font.c woudl seem best | 13:23.42 |
chrisl | Type 1, TrueType - I think all "font" types have the same rules for Encodings | 13:24.17 |
kens | OK then I'll shift it. Widths as well do you think ? | 13:24.37 |
chrisl | Possibly, yes. I was less bothered about that since it's smaller and simpler | 13:25.10 |
kens | I don't exactly remember what the code does, I shoudl go check :-) | 13:25.41 |
| Well I clearly need to tidy that code up as well, anyway | 13:26.47 |
chrisl | kens: There's no rush.... | 13:29.00 |
kens | Well I'm sort of approaching the limit of what I can do with text now I think | 13:29.22 |
| I've done text rendering modes, but I can't test it properly with only a type 3 font | 13:29.48 |
| Type 3 fonts aren't supposed to obey Tr aat all. Acrobat applies Tr 3 and also the clip from the clip modes. | 13:30.11 |
| GS applies Tr 3 but not the clips | 13:30.19 |
| I've decided to give up on trying to get this to work with pdfwrite and ps2write. The carproc capture simply isn't designed to work with these, and eventually we won't want to permit it anyway. | 13:31.10 |
| (Beyond what GS does already) | 13:31.22 |
chrisl | Well, I'm having a poke at Truetype fonts, hence running across the Encoding (and Widths) stuff | 13:32.08 |
kens | Sounds like good timing :-) | 13:32.32 |
| I'll just tidy up what's here then I'll move the stuff into pdf_font.c and apply more generic names | 13:33.01 |
| I think the only reason they are in pdf_font3.c is because I needed them to get Type 3 fonts working. I hadn't really thought about other font types | 13:33.26 |
chrisl | Cool. The missing Encoding is the next hurdle to getting glyphs to draw from a TTF | 13:33.46 |
kens | Give me a few minutes and I'll push something | 13:34.08 |
chrisl | As I said, no hurry. I've plenty else I can be doing | 13:34.46 |
kens | Its soemthing nice and simple to do, I can't really cope with anything else this afternoon | 13:35.09 |
chrisl | Actually, I also need to check the FontMatrix - I'm not convinced that's correct | 13:36.00 |
kens | chrisl refactored code pushed | 14:39.23 |
| I didn't bother with the Widths because the code involved is fairly small, but I'll do so another day | 14:39.41 |
chrisl | kens: Thanks | 14:41.05 |
kens | NP cluster push was OK but let me know if you have problems | 14:41.46 |
chrisl | kens: Just an observation: in pdfi_read_type3_font() you probably don't need to be scaling by 1 | 14:50.22 |
kens | Er yes, I think that's a hangover from when I was scaling by the point size | 14:50.42 |
chrisl | I assumed as much | 14:51.01 |
kens | OK pulled that out too | 14:52.21 |
chrisl | Glyphs! I can see glyphs - scaling etc all to hell, but glyphs! | 14:52.49 |
kens | WooHoo! | 14:52.55 |
| Ship it! | 14:53.07 |
chrisl | I'm also getting a strange error, but still... | 14:53.42 |
kens | Not bad for a first attempt I would say, very promising | 14:53.56 |
| Also don't forget problems cvould be mine | 14:54.04 |
| The text stuff is totally new and only tested with type 3 fonts | 14:54.17 |
chrisl | No, most of the FAPI stuff is just stubs just now, so I need to fill that in | 14:54.29 |
kens | Still its a huge step forward | 14:54.46 |
chrisl | I better commit this now, just in case :-) | 14:55.15 |
kens | Absolutely, put it somewhere safe | 14:55.24 |
| <<<Back 1 day (to 2019/07/24) | Forward 1 day (to 2019/07/26)>>> | |