GruJu Posted January 30, 2019 Share Posted January 30, 2019 In one of my documents some of the hyphens and dashes somehow get moved down by a few pixels during export. This doesn't happen to all of them, only some are affected. I also don't have this problem when exporting the exact same text in other programs. I've attached screenshots of the position of the dash in affinity, an unaffected dash after export and a moved dash. Link to comment Share on other sites More sharing options...
walt.farrell Posted January 30, 2019 Share Posted January 30, 2019 Exporting into what format? -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1 Link to comment Share on other sites More sharing options...
kenmcd Posted January 30, 2019 Share Posted January 30, 2019 What font family is this? It looks like different weights. The first example looks like a regular or medium weight. The second and third examples look like a medium or semi-bold weight. The lowercase e gives it away. Some fonts have the hyphen in the OpenType feature called Case-Sensitive Forms (case). In your first example the hyphen looks like "case" is applied. The vertical height is visually centered on the two capital letters on either side. Note where it aligns on the capital B on the right. In the second example it looks like the normal hyphen which vertically aligns with the lowercase letters such as the b on the left. Note where it aligns on the capital B at the right (it is lower than in the first example.) The third example just looks wrong period. Too low. Can you provide the PDF for examination? Perhaps an APub doc with just one page which has this text for testing? Link to comment Share on other sites More sharing options...
GruJu Posted January 30, 2019 Author Share Posted January 30, 2019 Thank you both for your quick replies. 1 hour ago, walt.farrell said: Exporting into what format? Sorry, exporting into PDF (for export), using the presets. 1 hour ago, LibreTraining said: What font family is this? It looks like different weights. The first example looks like a regular or medium weight. The second and third examples look like a medium or semi-bold weight. The lowercase e gives it away. I'm using Bahnschrift, which I only have in "regular", no other weights. I think it looks different because I didn't zoom in as much in some of the screenshots. 1 hour ago, LibreTraining said: The vertical height is visually centered on the two capital letters on either side. Note where it aligns on the capital B on the right I get where you're coming from but the third option is just what the first option looks like exported, no differences in cases applied or anything. The second screenshot was just to show that not all of my hypens are affected. So that would mean that only hyphens with case applied are affected by the export? I've attached an example PDF and apub. Thanks again. hyphen_forum.afpub hyphen_forum.pdf Link to comment Share on other sites More sharing options...
kenmcd Posted January 30, 2019 Share Posted January 30, 2019 Bahnschrift is a variable font. APub does not support variable fonts (yet). Thanks for the docs. I will take a look and see if I can see what is happening. Link to comment Share on other sites More sharing options...
kenmcd Posted January 30, 2019 Share Posted January 30, 2019 This appears to be a bug in the APub Export to PDF. Possibly related to the OpenType Contextual Alternates feature. I tested with a non-variable version of the Bahnschrift Regular font and had the same issue. Tested the same font in LibreOffice Export to PDF and it works as expected. I looked in the font file and there is an OpenType feature present which affects the dashes. They are using the Contextual Alternates (calt) feature to move the dashes upward 186 units whenever the dashes (and the @ sign) are in between two capital letters. The Contextual Alternates feature is On in your document. You can open the APub Typography panel and watch the dashes move up and down as you toggle this feature on and off. So it is working properly on screen. But when it is Exported to PDF something goes wrong. I could not see anything in the font file which would explain why this would happen. So this appears to be a bug in APub Export to PDF. ----- UPDATE Export to PNG - worked as expected. Looks fine. Printed to FinePrint pdfFactory (3rd-party PDF printer) - worked as expected. Looks fine. So you can use a 3rd-party PDF printer as a workaround for now. EDIT The PNG and pdfFactory output is not "fine." The dashes are all the normal height - calt is not working. The dashes are not lowered like in Export to PDF, but they are also not raised to where they should be. Link to comment Share on other sites More sharing options...
kenmcd Posted January 31, 2019 Share Posted January 31, 2019 I did take a closer look at the LibreOffice Export to PDF just to be sure. It is all correct. The dashes are raised when in between two capitals. Below is an image of the PDF output. This was done with the same font I sent both of you for testing. So the issue does not appear to be a problem with the font. GruJu 1 Link to comment Share on other sites More sharing options...
kenmcd Posted February 2, 2019 Share Posted February 2, 2019 Confirmed the problem with another commercial font - Quire Sans. The dashes in the Contextual Alternates (calt) export properly, but when calt is disabled and Case Sensitive Forms (case) is set to on and you Export to PDF, the dashes are almost laying on the baseline. It all looks OK on the screen. Definitely some issues in the OpenType features. Link to comment Share on other sites More sharing options...
Staff Sean P Posted February 4, 2019 Staff Share Posted February 4, 2019 Hi LibreTraining, Would you be able to upload the Quire Sans and Bahnschrift fonts you were using to our internal Dropbox? If you could also attach the AFPub document you've used that would also be really helpful! https://www.dropbox.com/request/0nQMKTxCpnwVvpbmgS6R Thanks Link to comment Share on other sites More sharing options...
kenmcd Posted February 4, 2019 Share Posted February 4, 2019 Sure. Will clean it up and upload with the fonts later today. Sean P 1 Link to comment Share on other sites More sharing options...
kenmcd Posted February 4, 2019 Share Posted February 4, 2019 @Sean P OK. I uploaded the APub doc, the fonts, and some example PDFs and images. LibreOffice-6-OpenType-calt-case-Export-to-PDF.pdf - shows how it should look. OpenType_calt_case_dashes_tests-Export-to-PDF.pdf - shows how it comes from APub. Enjoy! Link to comment Share on other sites More sharing options...
Staff Sean P Posted February 5, 2019 Staff Share Posted February 5, 2019 Wonderful! Thank you very much for those files - they were a great help! Also thank you to GruJu for bringing this to our attention! I've passed this on to development now Link to comment Share on other sites More sharing options...
kenmcd Posted February 8, 2019 Share Posted February 8, 2019 Just tested with 1.7.0.238 Beta released today. Issue still present. I know it was not mentioned in the release notes, but I thought I would check. I also know it is the developers lo-o-o-o-o-ong todo list. Link to comment Share on other sites More sharing options...
kenmcd Posted March 27, 2019 Share Posted March 27, 2019 Just tested with 1.7.0.283 Beta released today. Issue still present. Link to comment Share on other sites More sharing options...
kenmcd Posted June 3, 2019 Share Posted June 3, 2019 Still broken in 1.7.0.371 Beta. Link to comment Share on other sites More sharing options...
Recommended Posts