Jump to content
You must now use your email address to sign in [click for more info] ×

Hyphen postion after export moved down


Recommended Posts

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.

Dash_pos_Affinity.PNG

dash_unaffected.PNG

dash_Exported.PNG

Link to comment
Share on other sites

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

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

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

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

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.

1179401477_BahnscriftLOcalttestLibreOfficeExporttoPDF.thumb.png.1d4e9b81759496475a044260f3477129.png

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.

 

Link to comment
Share on other sites

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

  • 1 month later...
  • 2 months later...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.