feklee Posted September 29 Share Posted September 29 When I try to export the following file to PDF, the exporter just hangs at 5% generating a preview. When I click the export button, no PDF is created. 2024-09-29_export.afpub Font used: Source Han Sans I’m using Affinity Publisher 2.5.5 on Windows 11 Pro: Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted September 29 Share Posted September 29 There is one old reported problem with Source Han Sans, and it has a bug tag of AFB-3865, but I'm unable to tell if it was specific to that font nor if it is still open. Someone from Serif may know. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1 Link to comment Share on other sites More sharing options...
kenmcd Posted September 29 Share Posted September 29 3 hours ago, feklee said: Font used: Source Han Sans Which exact font file(s) did you install? What language are you using? Quote Link to comment Share on other sites More sharing options...
kenmcd Posted September 29 Share Posted September 29 OK. I am now on my laptop and opened your document. I see the font used is Source Han Sans SC VF - no way to tell if OTF or TTF. The Light instance was selected. I tested exporting from the variable TTF and it did work... eventually. Took a long time to display the preview. And took a long time to export and display the PDF. Changed the font to the Source Han Sans SC Light static OTF font. Preview showed quickly. Export to PDF was quick. Source Han Sans SC has 65,535 glyphs and 44,812 characters. It appears Affinity processes all characters in a font, not just what is needed. So a huge font like this, and being variable with two masters - it takes a long time. Affinity needs to optimize this. Work-around in the meantime - use the static fonts. walt.farrell 1 Quote Link to comment Share on other sites More sharing options...
feklee Posted September 30 Author Share Posted September 30 @walt.farrell, Thank you for the suggestions, and to the link to the existing bug report! @kenmcd The font that I was using is SourceHanSansSC-VF.otf, and from it I’m using simplified Chinese characters. The main language of the document is American English. Also, thank you for explaining what may be happening, namely Publisher processing all characters in the font. That means quite a bit of computation: As I just learned, by default these fonts create glyphs for different weights dynamically. Using the static version of Source Han Sans, with all weights baked in, indeed solves the issue. Now export is indeed fast. Before, I never got a successful export. I even let my computer sit over dinner, and Publisher just crashed, very frustrating. I tried all kinds of improvements, such as making sure the resolutions of images used are not carelessly high. It took me a while to find that the issue is with the font. kenmcd 1 Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted September 30 Share Posted September 30 @feklee: Forum usage hint: If you want to tag/notify someone: Type the @ sign Start typing their name until you get the dropdown list of matching names. Type more letters to make the list smaller. Choose a name from the dropdown list. Then you get a highlighted field (as at the beginning of this post, rather than plain text @feklee and (depending on their notification settings) they will be notified.. (And, you're welcome ) Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1 Link to comment Share on other sites More sharing options...
feklee Posted September 30 Author Share Posted September 30 Thank you! (I was writing the text in the editor of my choice, then copy & pasted it.) walt.farrell 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.