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

style not inheriting parent style?


Recommended Posts

I've created a Body style for main body text. It is based on Base.

I have created a Body_Bullet style for bullet point sections, based on Body.

The idea is that Body_Bullet inherits everything from Body and only changes the tab spacing and indent for the bullet point and text start distance.

The point of inheriting is that I change Body, I want Body_bullet to inherit those changes automatically.

Sadly this isn't happening - I am surely doing something wrong.

 

Changing the Font for Base does cause the font for Body_Bullet to change - so inheritance is working.

But for "Leading Override" setting the Body_bullet to "No Change" doesn't seem to inherit the value set manually for Body.

 

 

In the attached image you can see this see the setting. You can see the parent Body text (A) and the Body_Bullet text (B) which does inherit the typeface but not the leading.

 

What am I doing wrong?

 

Versions are all latest from App Store for Affinity apps and MacOS version.

 

1410900398_Screenshot2019-09-07at23_38_23.thumb.png.d02b354f0a481fc13f58203738b0be30.png

 

 

 

 

 

 

Link to comment
Share on other sites

1 hour ago, tariq said:

But for "Leading Override" setting the Body_bullet to "No Change" doesn't seem to inherit the value set manually for Body.

Where did you set that value manually for Body?

Can you provide a sample .afpub file to demonstrate your problem? That makes it easier to figure things out.

-- 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

1 hour ago, walt.farrell said:

Where did you set that value manually for Body?

Can you provide a sample .afpub file to demonstrate your problem? That makes it easier to figure things out.

in the style editor under "position and transform" "Leading Override" for the Body style

 

 

Screenshot 2019-09-08 at 03.06.12.png

Link to comment
Share on other sites

  • Staff

Screenshots are good, but this would be much easier to assist with a sample file.

Patrick Connor
Serif Europe Ltd

"There is nothing noble in being superior to your fellow man. True nobility lies in being superior to your previous self."  W. L. Sheldon

 

Link to comment
Share on other sites

Hm, when I open your .afpub I see only 1 identical leading for normal body and bulleted body in page view:

1719172548_bulletleading1.jpg.e9b1e793e49182a0762f9ed99f7653bd.jpg

And it seems you have assigned "leading override" to all of your text. That is not useful and will confuse only. Instead you would set the leading in paragraph panel and use the "leading override" in character panel ONLY for specific spots within paragraphs, for instance when you need to style one word in a font different to the body text font which needs adjustment in size and/or leading. In normal use this field would show a value in brackets "(... pt)" and show that way it's using the value set in paragraph panel.

906125202_bulletleading4.jpg.5a4ac66ce3a5e7ae1a0e12fba916f010.jpg  >> 1758372361_bulletleading3.jpg.7d8bb1bcc6795bc9ce05b7167d37e306.jpgI

Instead of these values [10] and 14 in the two panel pics above they would show (14pt) in the leading fields of both panels.

For your bullet text you might try assigning a character style to achieve the bullet parts different to body. You can assign such a style in the paragraph panel > bullets section:

2115958579_bulletleading2.jpg.3483b7a881cce5a3ca30accc2a05a1e9.jpg

 

 

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

6 hours ago, thomaso said:

Hm, when I open your .afpub I see only 1 identical leading for normal body and bulleted body in page view:

1719172548_bulletleading1.jpg.e9b1e793e49182a0762f9ed99f7653bd.jpg

And it seems you have assigned "leading override" to all of your text. That is not useful and will confuse only. Instead you would set the leading in paragraph panel and use the "leading override" in character panel ONLY for specific spots within paragraphs, for instance when you need to style one word in a font different to the body text font which needs adjustment in size and/or leading. In normal use this field would show a value in brackets "(... pt)" and show that way it's using the value set in paragraph panel.

906125202_bulletleading4.jpg.5a4ac66ce3a5e7ae1a0e12fba916f010.jpg  >> 1758372361_bulletleading3.jpg.7d8bb1bcc6795bc9ce05b7167d37e306.jpgI

Instead of these values [10] and 14 in the two panel pics above they would show (14pt) in the leading fields of both panels.

For your bullet text you might try assigning a character style to achieve the bullet parts different to body. You can assign such a style in the bullet panel:

2115958579_bulletleading2.jpg.3483b7a881cce5a3ca30accc2a05a1e9.jpg

 

 

thanks for trying to help but I'm confused!

 

I DO want all the base text to have the extra leading, so setting it in a paragraph style makes sense.. or am I wrong? I thought character styles were for application to individual works or characters and not entire passages of text?

What are the two panel pics you've shown?

again - thanks for your patience...

 

Link to comment
Share on other sites

3 hours ago, Wosven said:

There's a problem with your style. It should be based on Body, but when looking at the differences, or added parameters, there's so many of them that it looks like a new style.

2019-09-08_193034.thumb.png.178b5f24cf27f7337d14a948e65ee9cc.png2019-09-08_192722.thumb.png.c8dd9a6f349e89a162e7ea49ec21391f.png

 

2019-09-08_194033.png.88503a96172cd14d224bcba1e49db707.png

cck2v2.afpub

 

thanks - you are correct that lots of additional styles have been picked up

 

I think this is a bug in AP - if you "try new styles option and unset theme again" but don't "click OK" - they don't seem to go away from that big list.... so they accrete as you experiment ..

Link to comment
Share on other sites

8 hours ago, tariq said:

I think this is a bug in AP - if you "try new styles option and unset theme again" but don't "click OK" - they don't seem to go away from that big list.... so they accrete as you experiment ..

That's tricky in other apps too. With APub you need to select back "no change" or similar, but the best is to apply again the based on style, and do the few modifications before creating the new style.

Another solution is to use the "Reset formatting" button before modifying the style (perhaps keeping the style on another paragraph to check the parameters):

2019-09-09_072950.thumb.png.9db9a5a75ff237b41d4a6480c66f69ca.png

Usually, once I've got a test paragraph with nice modifications, I would create a new paragraph with pure "cck_Body", apply only the  needed modifications using the Paragraph or Character panel, (checking with the test paragraph if needed), and once done, use the "Add para/char style" buttons in the Text styles panel.

Link to comment
Share on other sites

12 hours ago, tariq said:

I DO want all the base text to have the extra leading, so setting it in a paragraph style makes sense.. or am I wrong?

Misunderstanding: In paragraph panel you set the general leading for a paragraph style – in character panel you set the extra leading ("override") for individually, different styled parts only. – You have not touched the leading in Paragraph Panel: it still displays a default value in square brackets "[10pt]"

798233822_bulletleading4.jpg.e42caf25d7f16e47c5c94039765c7bbd.jpg

Instead you have used for all text the leading override in Character Panel to "14pt":

1964222680_bulletleading3.jpg.e2c3863993df5a75c07d8699bc765f77.jpg

 

12 hours ago, tariq said:

I thought character styles were for application to individual words or characters and not entire passages of text?

Yes. But when I open your .afpub it appears you have used it different and set the leading ONLY as "override" – which is a property of character panel.

In case you have set all properties in the style options windows (means: NOT in the paragraph or character studio panels) my hints might confuse you. However, you can proof + set any single property also in the two panels and make them become part of a defined text style afterwards.

To set the default paragraph leading you might first adjust the "% Height" or "Exactly" value to make your [10 pt] become the wanted [14 pt].

753174292_bulletleading5-defaultpercentage.jpg.639df78007f49e637c57035b9d5d2be9.jpg

666171057_bulletleading6-defaultexactly.jpg.242130b31ae658b7ea21f46b33618ba9.jpg

Because you have set already quite a lot which might confuse you it can be helpful not to try to repair your current styles but start with new, "virgin" styles instead and, once you got what you want, assign those to your frames or text selections.

 

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

On 9/8/2019 at 4:12 PM, tariq said:

I thought character styles were for application to individual works or characters and not entire passages of text?

In general they are, but since leading (also known more properly or at least less ambiguously as "line spacing") is a property of a line of text, if you apply a leading override to any word or character on a line of text, it is applied to the entire line.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

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.