Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts in Version 4.8.1 (644) #1627

Closed
simaberson opened this issue Apr 27, 2024 · 4 comments
Closed

Fonts in Version 4.8.1 (644) #1627

simaberson opened this issue Apr 27, 2024 · 4 comments
Labels

Comments

@simaberson
Copy link

Description

When I save files that solely use Menlo, if I save the files, close the window, and reopen the file, the font is Helvetica. Save behavior if I quit and restart. This is new behavior.

To Reproduce

  1. Open File
  2. Select all
  3. Format -> Font -> Show Fonts
  4. Click on Menlo
  5. Save
  6. Close
  7. Open file

Expected behavior

It should be expected that the font gets saved.

CotEditor version

Version 4.8.1 (644)

macOS version

13.4.1 (c)

Additional context

No response

@simaberson simaberson added the potential bug issues not yet tested label Apr 27, 2024
@simaberson
Copy link
Author

Screenshot of preferences
Screenshot 2024-04-27 at 4 07 53 PM

@1024jp
Copy link
Member

1024jp commented Apr 28, 2024

Since CotEditor 4.8.0, CotEditor use a font according to the document type.
This is a part of the Mode future introduced in the version and can be configured in the new Mode settings pane.
When you select the "monospaced" font both for the General and Code modes, the editor font will be always Menlo.

@1024jp 1024jp added support and removed potential bug issues not yet tested labels Apr 28, 2024
@gingerbeardman
Copy link

This new Mode thing is very surprising, and I think some files are in the wrong mode. See #1629

@1024jp
Copy link
Member

1024jp commented May 1, 2024

@simaberson OK, I read your original post again and found the cause.

  1. Open File
  2. Select all
  3. Format -> Font -> Show Fonts
  4. Click on Menlo
  5. Save
  6. Close
  7. Open file

CotEditor handles only plain text format, which has no styling information.
Therefore, the document doesn't remember the font for individual files.
The Font feature in the Format menu is just for temporal use in the same session.
Thus, this behavior is by design.

@gingerbeardman Your issue must be different from this thread.

@1024jp 1024jp closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants