Jump to content

Recommended Posts

Posted

I regularly have to create newspaper advertisements for special offers. A typical layout construct is the special offer price in a highlighted rectangle or ellipse. There is also a strikethrough price. Creating both under the typical time pressure is very exhausting, as prices often change at the last minute. Then not only the text has to be changed, but also the overall shape and the strikethrough of the normal price. A lot of fine-tuning under time pressure.

image.png.cae0f6123a7f5c6a736609d96c4babc3.pngimage.png.d046ec343b46fdb17439c5b0eaa70723.png

 

The following two extensions would be nice:

 

1) Custom Strikethrough style

The strikethrough of the normal price could also be achieved with a standard text style. Unfortunately, many customers prefer a diagonal line through (behind) the price, as the numbers are then more legible than with a standard horizontal strikethrough. To achieve this, only a manually drawn path can be used, which then has to be laboriously moved underneath each price, as the length of the line also varies depending on the length of the number string. It would be useful to be able to assign the strikethrough of text as a user-defined style to a text. It would be important to be able to run any colored graphic diagonally over|behind the text, which automatically adjusts to the length of the text when changed. So it's basically an automatic form generation|transformation based on the bounding box of the editable text (typical graphic text for prices).

image.png.f3652fee130489e7b102d094f7289b8b.png

 

2) Automated shapes from text

The same applies to a typical box for a special price. This should also be generated automatically from the length and size of the editable text and should be freely designable. Illustrator has a halfway usable approach to this via the Appearance panel. In the example video below, a rectangle with padding is first generated from the bounding box of the editable text, which is then optically transformed in the Y direction. This appearance enables text to be changed quickly without having to change the box behind the text every time. In Illustrator, the appearance can at least be saved as a style and quickly transferred to new texts. This saves so much time, especially when text changes are made at the last minute.

 image.png.c02b1953ae1730a45a7e6563dc338c5d.png

 

Hardware: Windows 11 Pro (24H2, build 26100.3775, Windows Feature Experience Pack 1000.26100.66.0), Intel(R) Core(TM) i9-14900K, 24 Core@3.20 GHz, 128 GB RAM, NVIDIA RTX A4000 (16GB VRAM, driver 551.61), 1TB + 2TB SSD. 1 Display set to native 2560 x 1440.
Software: Affinity v1 - Designer/Publisher/Photo (1.10.6.1665), Affinity v2 (universal license) - Designer/Publisher/Photo, v2 betas.

Posted

Possible approach

This could perhaps be implemented in general with a new form of constraint.

The basic function would be that a graphic object (source: for example a symbol or group) is aligned with any other object (target -> text, group, ...). This means that the symbol initially follows the pivot position of the target object. There are additional options here that set the pivot point of the source and also make an absolute or relative offset to the target object controllable. This also allows the position of the objects in relation to each other to be finely controlled optically.

- The source is drawn in the layer stack in front of or behind the target object.

- The size of the target's bounding box is determined and the source is scaled so that the graphic is fitted into the target rectangle. There could be different modes here that are comparable to those of the picture frame (object-fit: contain, cover, stretch, none).

- To ensure that the source graphic can also extend beyond the edges of the target object, it would be possible to set absolute or relative padding. The padding increases the measured bounding box of the target object t|r|b|l, which means that the source object would be scaled larger than the target object.

The level hierarchy must not play a role here! Parent-child arrangements would collide with clipping. At most, the source and target would have to be in the same group as siblings - but it would be better if the source and target could be anywhere in the hierarchy.

 

For the above use case, for example, I would create a symbol for both the strikethrough and the box (ellipse, star, ...), which would then be chained to the price text (target) via a constraint. If the text changes, the size of the graphic behind it is also adjusted to the texts new bounding box. If I want to change the appearence of the strikethrough globally, I only have to change the symbol (source) and all occurrences in the document could be changed in one go 🙂

Ideally, such a constraint could also be saved as a style. Or the control parameters could somehow be quickly transferred to a new source/target pair.

image.png.a6623d7586e2e5d7e983514814582a8e.png

image.png.f9a692592b1f9e62d5b6c31459d3ee84.png

 

 

 

Hardware: Windows 11 Pro (24H2, build 26100.3775, Windows Feature Experience Pack 1000.26100.66.0), Intel(R) Core(TM) i9-14900K, 24 Core@3.20 GHz, 128 GB RAM, NVIDIA RTX A4000 (16GB VRAM, driver 551.61), 1TB + 2TB SSD. 1 Display set to native 2560 x 1440.
Software: Affinity v1 - Designer/Publisher/Photo (1.10.6.1665), Affinity v2 (universal license) - Designer/Publisher/Photo, v2 betas.

Posted

Another option would be to update paragraph decorations to support corner rounding and rotation.

That way it could easily be applied using a simple paragraph style.

Posted
1 hour ago, fde101 said:

Another option would be to update paragraph decorations to support corner rounding and rotation.

That way it could easily be applied using a simple paragraph style.

Yes, you are right! If you only consider the problem of text decoration, extended character or paragraph properties would be the quickest application 🙂

An even more general solution, like the constraints, would cover many more cases that do not only have to do with text alone.

Imagine that the source object itself can also have constraints that, for example, control the position and scaling of standard decorative elements in the source object depending on the size of the transformed source bounding box.

Here are a few real-life examples:

 

image.png.c1c010582f7f4d2efbf2fe371c797675.pngimage.png.288349ef7d631367cadbffde084e0244.pngimage.png.b822ba5c87ca77892c9f0a07d8428037.pngimage.png.de4f564534e13ebd6a4165c4e2a742bb.pngimage.png.dcdf5c58683298940a627e8d6162106d.pngimage.png.c69895169309f28ed06cd03dd03b149e.pngimage.png.98bdf88c1402d46cfbb67dbdeaf003f7.pngimage.png.57e4b7eeccd735efb899d4eb9a7e370d.png

 

image.png.ba3a42161661f267c0116e5380bd1451.png

Hardware: Windows 11 Pro (24H2, build 26100.3775, Windows Feature Experience Pack 1000.26100.66.0), Intel(R) Core(TM) i9-14900K, 24 Core@3.20 GHz, 128 GB RAM, NVIDIA RTX A4000 (16GB VRAM, driver 551.61), 1TB + 2TB SSD. 1 Display set to native 2560 x 1440.
Software: Affinity v1 - Designer/Publisher/Photo (1.10.6.1665), Affinity v2 (universal license) - Designer/Publisher/Photo, v2 betas.

Posted

I agree that Constraints would be a handy place for some of this.

Though, just being able to round the corners of a Text Frame (and having Text Frames in Designer) would solve one the OPs first examples.

Posted
8 minutes ago, prophet said:

Though, just being able to round the corners of a Text Frame

Rounded rectangles can be converted into Text Frames

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Posted
1 minute ago, carl123 said:

Rounded rectangles can be converted into Text Frames

Yes, and then turned into assets to be easily dragged into the project wherever they are needed.

Posted

But then how can I change the corner radius if I'd like to?

And I mis-typed. Designer has Text Frame, but no Text Frame panel to adjust things like fill, stroke, inset, etc.

Posted
Just now, prophet said:

But then how can I change the corner radius if I'd like to?

And I mis-typed. Designer has Text Frame, but no Text Frame panel to adjust things like fill, stroke, etc.

You change the fill with the Vector Flood Fill Tool (target the frame not the text)

Reselecting the Rounded Rectangle shape tool will give you the same options to change the corner radius

 

 

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Posted
1 minute ago, carl123 said:

You change the fill with the Vector Flood Fill Tool (target the frame not the text)

I have seen that clever "hack"

1 minute ago, carl123 said:

Reselecting the Rounded Rectangle shape tool will give you the same options to change the corner radius

But not after it becomes Text Frame.

Posted
2 minutes ago, carl123 said:

Rounded rectangles can be converted into Text Frames

Yes, technically this can be changed in a multi-stage process. But subsequent adjustments to the text frame are also cumbersome.

The original idea was that you only have to enter the new price text and everything else follows automatically.

Imagine you have to change 10 prices in an ad. Under time pressure just before the editorial deadline. Then graphic errors are almost unavoidable.

Hardware: Windows 11 Pro (24H2, build 26100.3775, Windows Feature Experience Pack 1000.26100.66.0), Intel(R) Core(TM) i9-14900K, 24 Core@3.20 GHz, 128 GB RAM, NVIDIA RTX A4000 (16GB VRAM, driver 551.61), 1TB + 2TB SSD. 1 Display set to native 2560 x 1440.
Software: Affinity v1 - Designer/Publisher/Photo (1.10.6.1665), Affinity v2 (universal license) - Designer/Publisher/Photo, v2 betas.

Posted
2 minutes ago, prophet said:

But not after it becomes Text Frame.

Yes, it works, it's technically still a Rounded Rectangle

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Posted
3 minutes ago, carl123 said:

Yes, it works, it's technically still a Rounded Rectangle

Huh, first time I tried it didn't work, but made a new Round Rectangle and converted to Frame Text and it does work. Odd, but good to know. Thanks @carl123

Well, @4dimage, does that help a little with your work? You still need to style with Publishers Text Frame panel, and some of the auto sizing handle clicking doesn't work well if using insets.

Posted

Hardware: Windows 11 Pro (24H2, build 26100.3775, Windows Feature Experience Pack 1000.26100.66.0), Intel(R) Core(TM) i9-14900K, 24 Core@3.20 GHz, 128 GB RAM, NVIDIA RTX A4000 (16GB VRAM, driver 551.61), 1TB + 2TB SSD. 1 Display set to native 2560 x 1440.
Software: Affinity v1 - Designer/Publisher/Photo (1.10.6.1665), Affinity v2 (universal license) - Designer/Publisher/Photo, v2 betas.

Posted
2 minutes ago, prophet said:

Huh, first time I tried it didn't work, but made a new Round Rectangle and converted to Frame Text and it does work. Odd, but good to know. Thanks @carl123

Well, @4dimage, does that help a little with your work? You still need to style with Publishers Text Frame panel, and some of the auto sizing handle clicking doesn't work well if using insets.

Yes, thanks. This is one of several possible solutions. E.g. nesting text in a rounded rectangle with a centering constraint also means that the box can be scaled independently of the text it contains. I use this very often for teasers. But the text box does not automatically adjust to the width of its text. This has do be done manually.

However, all of these solutions require more or less time and fine-tuning to ensure that everything looks neat in the end.

With Affinity, I can somehow implement all graphic ideas if I invest enough time. It would be nicer to be able to store automated objects for recurring elements. For example, for a weekly recurring offer sheet from a supermarket. The layout is largely always similar, only the prices and items change. But the appearance should be recognizable every week. That calls for automation ;-)

Hardware: Windows 11 Pro (24H2, build 26100.3775, Windows Feature Experience Pack 1000.26100.66.0), Intel(R) Core(TM) i9-14900K, 24 Core@3.20 GHz, 128 GB RAM, NVIDIA RTX A4000 (16GB VRAM, driver 551.61), 1TB + 2TB SSD. 1 Display set to native 2560 x 1440.
Software: Affinity v1 - Designer/Publisher/Photo (1.10.6.1665), Affinity v2 (universal license) - Designer/Publisher/Photo, v2 betas.

Posted
17 hours ago, 4dimage said:

But the text box does not automatically adjust to the width of its text. This has to be done manually.

For that you need to use Art Text

Attached is an Affinity document showing just Art Text layers with the appropriate decorations applied to them

Can (probably) also be done using the Text Frame panel in Publisher but more fun using decorations

Everything is configurable on the one layer

E.g.

Colours
Space to left of letters
Space to right of letters
Corner roundness

You would just need to resize them to the sizes you need and save as assets

 

 

 

 

art.png

arttext.afpub

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Posted

@carl123 Yessss🙂 You saved my day!

Super duper method! I didn't notice these settings at all. Never too old to learn new tricks ;-)

image.png.aa6e9584cae753cc6abb64f632cbf140.png

And you can even decide to scale or not to scale the border with the text object 🙂

image.png.80178b4d17bd210326e5c3360db92785.png

Hardware: Windows 11 Pro (24H2, build 26100.3775, Windows Feature Experience Pack 1000.26100.66.0), Intel(R) Core(TM) i9-14900K, 24 Core@3.20 GHz, 128 GB RAM, NVIDIA RTX A4000 (16GB VRAM, driver 551.61), 1TB + 2TB SSD. 1 Display set to native 2560 x 1440.
Software: Affinity v1 - Designer/Publisher/Photo (1.10.6.1665), Affinity v2 (universal license) - Designer/Publisher/Photo, v2 betas.

Posted

A very clever approach!

A minor limitation is the "corner" radius is really just a function of the stroke width and not adjustable independently, but it's a nice workaround.

Posted
48 minutes ago, prophet said:

A minor limitation is the "corner" radius is really just a function of the stroke width and not adjustable independently, but it's a nice workaround.

The stroke width determines the corner radius

 

 

arttext2.png

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Posted

There are apps available focused on all these topics like print/online price tags, labels and brochures.

Of course you could use generic graphic apps like Affinity, but in case you are into full process automation have a look here:

https://online-software-ag.com/en/solutions/print/

Those apps are not cheap.

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.

 

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.