Jump to content

Recommended Posts

Posted

For some reason, when I use enable underline it shows over any descenders in the text. How do I create an underline that is behind the text, not in front of it?

image.png.1396ffd62eb99d2686a1ba979909ca59.png

 

 

 

Second question, is there a way to create an underline that automatically splits where the descenders are without having to try an hack something together with a text 'outline'?

image.png.17ff4f356a72401f5a749a7cb79cc252.png

Posted
  1. Duplicate frame text
  2. lower with underline
  3. upper without underline, set text stroke color to white, radius as needed

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

Or tweaking the method from @carl123 and using a lower stroke on text frame, no fill, combined with white stroke on text

 

IMG_2754.png

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted

@NotMyFault Thanks for that thread. 

Turns out I ended up going with two objects; the text with an outline and a simple line underneath it. I was wanting the line to extend the entire length of the text box, so a separate object was the simplest route. Plus it allowed for the line to fade out using a gradient.

I was pretty sure in years past I had worked out a similar situation to what @carl123 had suggested, but perhaps that is win Illustrator. It's been quite a few years.

 

I'm guessing the effect I was going for is not something people use on a regular basis and is likely not a simple thing to code. It would be nice to have a 'simple' option to make that cutout style outline though.

Anyway, thanks again!

Posted
34 minutes ago, SG Pilgrim said:

I'm guessing the effect I was going for is not something people use on a regular basis and is likely not a simple thing to code. It would be nice to have a 'simple' option to make that cutout style outline though.

Browsers do it automatically with the text-decoration: underline.

The image below is Firefox and the Georgia font. Chrome looks similar.

Georgia-on-Firefox.thumb.png.e625e720ff395c500a24507802e611a9.png

The code is open source if someone wanted to see how it is done.
Chrome uses Skia. Do not know what Firefox uses.

Posted

@kenmcd Perhaps that's why I thought it was easy, as I'd seen it used elsewhere but just wasn't putting the pieces together in my head.

Honestly, I'm not sure why it wouldn't be a feature in APub or AD but I guess it's not there until it is.

Posted

Late to the party, but...

If you use Decorations in the Paragraph panel rather than an underscore defined in the Character panel, you can achieve what you need without drawing separate rules:

 

Screenshot2025-04-30at10_46_33.thumb.png.27a6071d263696a4302d6863c074ac13.png

 

In the Paragraphs panel, the Right element of the decoration is set to Column with 0mm indent. The Bottom element is set to Descent with 0.8mm indent. The Stroke is set to 2pt red. I unchecked Combine identical so that the rule appears in all following paragraphs.

The rule appears 'below' the text rather 'above it' (Heaven knows why it works the other way for character styles).

In the Character panel, the size is 20pt, the outline is set to 1pt white, outside the character.

This way the red rules will follow the width of the text frame without having to change them separately, and the whole setup can be saved as a style and used repeatedly. And in a continuous flow of text, they'll stick with the 'Day x' text without having to readjust their position every time you add extra paragraphs to the intervening text.

Affinity Photo 2.6.3,  Affinity Designer 2.6.3 Affinity Publisher 2.6.3, Mac OSX 15.5, 2018 MacBook Pro 15" Intel.

Posted

More on the topic and various workflo… er, workarounds in these threads:

 

MacBookAir 15": MacOS Sonoma > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 18 > Affinity v2

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • 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.