Jump to content
tariq

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

 

 

 

 

 

 

Share this post


Link to post
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

Windows 10 Home, version 1903 (18362.356), 16GB memory, Intel Core i7-6700K @ 4.00Gz, GeForce GTX 970
Affinity Photo 1.7.3.481 and 1.8.0.486 Beta   / Affinity Designer 1.7.3.481 and 1.8.0.486 Beta  / Affinity Publisher 1.7.3.481 and 1.7.3.475 Beta

Share this post


Link to post
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

Share this post


Link to post
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.12.6,  Macbook Pro 15" + Eizo 24"

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
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...

 

Share this post


Link to post
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 ..

Share this post


Link to post
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.

Share this post


Link to post
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.12.6,  Macbook Pro 15" + Eizo 24"

Share this post


Link to post
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.


Affinity Photo 1.7.3, Affinity Designer 1.7.3, Affinity Publisher 1.7.3; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.7.3.155 & Affinity Designer 1.7.3.1 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 13.1.2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | 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.