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

APub: Text-styles broken on font-change


Recommended Posts

Hi!

I was trying out different fonts for my project,
and I was installing and deleting fonts as I went along.
This caused problems. Deleted styles got set as inline-syles missing for each paragraph,
so I would manually need to go over my 16pages document to sort out all errors.

Are there any global actions to fix this?

What is recommended workflow?

Link to comment
Share on other sites

What do you mean with "inline-styles"? – I don't know of any way in Affinity to define, create or use "inline-styles" which in my understanding would mean that certain style info gets literally written within the text of the text frames. Accordingly I don't understand what was happening to your document.

If it is "just" about missing fonts you should be able to fix this with the Font Manager, respectively the style definitions, while in case of styles which depend on each other it makes sense to adjust them in their hierarchy from top to bottom to avoid unnecessary changes.

If installing & deleting fonts caused a confused font data base of your system or of APub then you might reset them.

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

Link to comment
Share on other sites

26 minutes ago, thomaso said:

What do you mean with "inline-styles"?

I mean local formatting is created when there was none.

It's not really about missing fonts. When I change font in the text-styles there is no change as Publisher has made local formatting for missing fonts (that I has deleted for changing to another font).

I have the habit of restarting Publisher after install/uninstall of fonts.

Link to comment
Share on other sites

1 hour ago, GeirSol said:

It's not really about missing fonts. When I change font in the text-styles there is no change as Publisher has made local formatting for missing fonts (that I has deleted for changing to another font).

I think I still don't really understand your workflow, e.g. What did you delete: font, style, …?

• If I delete a font then this becomes missing for Affinity. (but you say "It's not really about missing fonts".)

• If I delete a style then text which has the style assigned turns to its parent style (which is at least [No style] with its definition).

Can you reproduce the issue with any document?
Can you upload a document with common fonts (e.g. system fonts) and the info what gets deleted to cause local formatting?

Nevertheless, you can get rid of local formatting via the Text Styles panel > "Reset Formatting" (T-icon top right) or the main menu's "Reapply" options.
Also you can use the "Find & Replace" panel with its Format option (cog menu) to replace a specific style definition only, respectively to assign styles / style attributes – regardless of text contents.

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

Link to comment
Share on other sites

To reproduce.

  1. Have a document with a couple of assigned styles (including font)
  2. Install new font
  3. Restart Publisher
  4. Assign new font to one style
  5. Close Publisher
  6. Uninstall font
  7. Reopen document in Publisher

Publisher has now assigned local formatting for the style in question.

1 hour ago, thomaso said:

Nevertheless, you can get rid of local formatting via the Text Styles panel > "Reset Formatting" (T-icon top right) or the main menu's "Reapply" options.

Also you can use the "Find & Replace" panel with its Format option (cog menu) to replace a specific style definition only, respectively to assign styles / style attributes – regardless of text contents.

Thanks! The second one looks promising. The first I knew, but is one-by-one

Link to comment
Share on other sites

7 hours ago, GeirSol said:

So, what is recommended workflow in my case?

Don't delete fonts that you need?

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

11 hours ago, walt.farrell said:

Don't delete fonts that you need?

The point is: This is fonts I don't need.

I don't want to try 30 fonts and leave all of them on my system.

So, deleting them as I go is the desired workflow, but if that doesn't go well with Publisher I can make a list on my desktop and take it when I've found the fonts I need.

Link to comment
Share on other sites

  • Staff
57 minutes ago, GeirSol said:

The point is: This is fonts I don't need.

I don't want to try 30 fonts and leave all of them on my system.

So, deleting them as I go is the desired workflow, but if that doesn't go well with Publisher I can make a list on my desktop and take it when I've found the fonts I need.

change the font back to arial before deleting the font.

Lee

Link to comment
Share on other sites

23 hours ago, LeeThorpe said:

Hi GeirSol

This is normal, you've essentially destroyed the style by removing one of it's key components.

Lee

"Essentially destroyed" - what nonsense is that?

@GeirSol

You can see that the font is missing by the question mark before the font name and by the + after the style name, since Publisher has substituted the font temporarily (and thus the text style is actually changed from the original, but only temporarily).

image.png.cde8afc84a4a317fc8b2098f0d15449b.png

You can get an overview in the font manager:

image.png.e105a71c366f06b0d9be4354b548d6d3.png

By selection locate you can find an affected paragraph and identify an affected text style.

The good news is that Publisher has NOT left the affected sections where this text style is used as local formatting.

You need to find the studio panel called text styles and scroll down to the affected text style. You may have been confused by the fact that Publisher has also marked no style at the top of that panel:

image.png.17a79bc8c22ad68f22ac260e0cc7be21.png

image.png.6e4d6b9a724fd2e123bb7c0e5051e00e.png

Select a font that is installed and all is well.

Have I understood everything correctly about your situation? Did what I wrote make sense? Apologies if I misread anything.

10 Reasons Why Strategic Plans Fail
Having a plan simply for plans sake - Not understanding the environment or focusing on results - Partial commitment - Not having the right people involved - Writing the plan and putting it on the shelf - Unwillingness or inability to change - Having the wrong people in leadership positions - No accountability or follow through - Unrealistic goals or lack of focus and resources.

Get it?

Link to comment
Share on other sites

30 minutes ago, Winsome said:

You can get an overview in the font manager

Thank you!  That was really helpful. The locate button made me find an empty frame causing missing warning.

There is one issue that still remains. Publisher do set local formatting,
and just changing font in text-styles does not fix this. I need to clear all paragraphs for local formatting one by one.

Link to comment
Share on other sites

7 minutes ago, GeirSol said:

There is one issue that still remains. Publisher do set local formatting,
and just changing font in text-styles does not fix this. I need to clear all paragraphs for local formatting one by one.

You don't need to change formatting one by one. Have you tried the workflow I mentioned above, in particular to delete a style from the Text Styles panel BEFORE you delete its applied font file. By deleting the style I get the text auto-set to its parent style (if it used one) or to the apps default for [No Style], which is Arial unless you changed that.

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

Link to comment
Share on other sites

17 minutes ago, thomaso said:

You don't need to change formatting one by one. Have you tried the workflow I mentioned above, in particular to delete a style from the Text Styles panel BEFORE you delete its applied font file. By deleting the style I get the text auto-set to its parent style (if it used one) or to the apps default for [No Style], which is Arial unless you changed that.

Thanks! But I do not want to delete the style -just change the font.
Or maybe I don't understand you correctly?

Link to comment
Share on other sites

1 minute ago, GeirSol said:

I do not want to delete the style -just change the font.

Seems I was misunderstanding you. Then change the style before you delete the font.

On 8/14/2022 at 1:23 PM, GeirSol said:

I have the habit of restarting Publisher after install/uninstall of fonts.

Not sure if this is required, or if it would be more useful to close APub before changing installed fonts. – Though I did not experience issues yet without closing APub, possibly because I use an extra font manager software which let me activate/deactivate fonts while APub is opened without issues. If you use the default font manager of your system you could give it a try at least to see how this works without closing APub.

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

Link to comment
Share on other sites

In any scenario, you should be able to delete a font without the program making permanent changes where styles with that font are applied!

This is equivalent to opening the document on a machine without that font, and a DTP program or word processor must be able to open and save a document in that scenario without making permanent changes. If automatic substitution occurs, it must be temporary only, and permanent changes must be made only after user interaction and user acceptance.

If Publisher can't handle a font being missing, then it's back to the drawing board before version 2.

But I think we need an example document. I certainly can't recreate what you experience with more simple test documents.

10 Reasons Why Strategic Plans Fail
Having a plan simply for plans sake - Not understanding the environment or focusing on results - Partial commitment - Not having the right people involved - Writing the plan and putting it on the shelf - Unwillingness or inability to change - Having the wrong people in leadership positions - No accountability or follow through - Unrealistic goals or lack of focus and resources.

Get it?

Link to comment
Share on other sites

5 minutes ago, thomaso said:

Seems I was misunderstanding you. Then change the style before you delete the font.

Not sure if this is required, or if it would be more useful to close APub before changing installed fonts. – Though I did not experience issues yet without closing APub, possibly because I use an extra font manager software which let me activate/deactivate fonts while APub is opened without issues. If you use the default font manager of your system you could give it a try at least to see how this works without closing APub.

I'll try that. Thanks!

Link to comment
Share on other sites

9 minutes ago, Winsome said:

But I think we need an example document. I certainly can't recreate what you experience with more simple test documents.

Here's a sample-file

2 styles, installed new font, selected it for style 2, closed Publisher, uninstalled font

Now there are local formatting on all Style 2-paragrahps.

test.afpub

Link to comment
Share on other sites

Ah, in my test document I mistakenly used character styles instead of paragraph styles. D'oh.

I see what you mean. Nothing happens when I update the style (font-familiy).

If you select a style 2 formatted paragraph and then select Apply style 2 and clear paragraph styles, then that paragraph formats correctly. I can't find anywhere in the style in question (style 2) where I can remove this character formatting, so it must indeed be an erroneous local formatting. So maybe the font substitution messes with the character information:

image.png.526d48814578207fd4a3e582446472af.png

In that case I would think it is a bug in Publisher.

10 Reasons Why Strategic Plans Fail
Having a plan simply for plans sake - Not understanding the environment or focusing on results - Partial commitment - Not having the right people involved - Writing the plan and putting it on the shelf - Unwillingness or inability to change - Having the wrong people in leadership positions - No accountability or follow through - Unrealistic goals or lack of focus and resources.

Get it?

Link to comment
Share on other sites

I still can't reproduce it, though, with a very simple scenario identical to yours. I see no remnants of the uninstalled font in style studio.
Windows 11 Professional, by the way.

image.png.f8551623f05237e43f79830a37deab6b.png

10 Reasons Why Strategic Plans Fail
Having a plan simply for plans sake - Not understanding the environment or focusing on results - Partial commitment - Not having the right people involved - Writing the plan and putting it on the shelf - Unwillingness or inability to change - Having the wrong people in leadership positions - No accountability or follow through - Unrealistic goals or lack of focus and resources.

Get it?

Link to comment
Share on other sites

3 hours ago, GeirSol said:

The point is: This is fonts I don't need.

I don't want to try 30 fonts and leave all of them on my system.

So, deleting them as I go is the desired workflow, but if that doesn't go well with Publisher I can make a list on my desktop and take it when I've found the fonts I need.

Then don't put them into text styles? Or update the text styles to use a font that you have left installed.

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

9 minutes ago, Winsome said:

I see what you mean. Nothing happens when I update the style (font-familiy).

Different to me (macOS): If I open the document I see local formatting applied, too, and Lucida as substitution font.

805861699_fontmissingaliasdeleted1.thumb.jpg.71e1b08fc89f1f9fe1beae39a5295e12.jpg

But if I update / reapply the style to selected text then the local formatting (+) disappears and a different substitution font gets used for the missing font.

1105923725_fontmissingaliasdeleted2.thumb.jpg.0553fdc452a84fd62ae3c6a882de7edf.jpg

@GeirSol, personally I would delete this style and recreate it, (instead of trying to detect the reason) because I don't get this issue / can't reproduce it in any other document with your workflow of deactivating a font while the document is opened. This makes me assume it is a confused / corrupted style definition or document.

This makes me wonder
… do you get the issue in every document?
… do you still get the issue if you do not delete the font while the document is open?

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

Link to comment
Share on other sites

2 hours ago, walt.farrell said:

Then don't put them into text styles? Or update the text styles to use a font that you have left installed.

#1 Have to use text-styles. The idea is to see the changes in a complex larger layout.

#2 Yes, that's a usable workaround.

Link to comment
Share on other sites

2 hours ago, thomaso said:

This makes me wonder
… do you get the issue in every document?
… do you still get the issue if you do not delete the font while the document is open?

#1 In every document I've tried this

#2 Eh, no, then the font is there. No issue. But, from habit I only do uninstall when affected program is closed.

Link to comment
Share on other sites

3 hours ago, GeirSol said:

But, from habit I only do uninstall when affected program is closed.

Okay. It sounded different in an earlier post which made me think you first uninstall a font and after that you close (restart) APub:

On 8/14/2022 at 1:23 PM, GeirSol said:

I have the habit of restarting Publisher after install/uninstall of fonts.

The fact that you experience the issue with every document is strange because @Winsome (Windows 11) and me (macOS 10.14 + Suitcase Font manager) can't reproduce the issue.

Does the issue occur with every font you had tried + deleted, – or with some only?

What system runs on your computer? And how are fonts managed? You always said you "delete" fonts, does it mean there no option to deactivate / disable fonts but they need to get trashed instead to become uninstalled?

If you indeed just trash them from their location after installing and trying them: have you tried if the issue occurs if you reboot the computer after trashing a font and before re-opening APub?

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

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.