Giter Club home page Giter Club logo

Comments (6)

tangledhelix avatar tangledhelix commented on September 28, 2024 1

Also, for what it's worth, it seems like bundling font files in apps may be common and we could do the same?

❯ find /Applications -type f -name '*.ttf' | wc -l
    1123

from guiguts-py.

windymilla avatar windymilla commented on September 28, 2024 1

Default fonts are now set (choosing DPSM if available, or DejaVu Sans Mono, or Courier New, or Courier). Apparently Courier is guaranteed to be available when using Tk.
I'm therefore punting the rest of this to "future feature" (probably meaning "after the first beta release")

from guiguts-py.

srjfoo avatar srjfoo commented on September 28, 2024

Modern Macs should all come with Font Book, and all you should need to do is open that and navigate to where the downloaded font is and open it.

Caveat: The current version of DPSM that I have is, I think (though I haven't verified it for sure), the current version, and does not identify itself to at least some apps (Font Book and BBEdit, for sure) as a monospace font, though it behaves like one. (In Font Book, it sorts into All and User fonts for me.)

from guiguts-py.

tangledhelix avatar tangledhelix commented on September 28, 2024

That's true (about Font Book) but I was hoping to auto-install it, and reduce the amount of extra steps for users to take. All Font Book really does is provide a UI for this - I believe dropping font files into the right folder accomplishes the same thing.

(What I'm not sure about is whether filesystem sandboxing would prevent an install from happening.)

Regarding your caveat: I notice that if I look in my Font book, it has a filter for fixed-width fonts, and choosing it, DP Sans Mono is not there.

Screenshot 2023-12-19 at 1 30 34 AM

That filter checks that the "Design Style" field is set to "Monospaced". So it seems like that bit of metadata may not be set quite right in the DP Sans Mono font... too bad. Although it doesn't prevent it from working in Guiguts.

from guiguts-py.

srjfoo avatar srjfoo commented on September 28, 2024

That's true (about Font Book) but I was hoping to auto-install it, and reduce the amount of extra steps for users to take. All Font Book really does is provide a UI for this - I believe dropping font files into the right folder accomplishes the same thing.

(What I'm not sure about is whether filesystem sandboxing would prevent an install from happening.)

Regarding your caveat: I notice that if I look in my Font book, it has a filter for fixed-width fonts, and choosing it, DP Sans Mono is not there.
(broken screenshot link removed)

That filter checks that the "Design Style" field is set to "Monospaced". So it seems like that bit of metadata may not be set quite right in the DP Sans Mono font... too bad. Although it doesn't prevent it from working in Guiguts.

Okay, that's fair. I missed the fact that you were thinking of an auto-install (I figured it would be easier for users to use Font Book than to manually move the font to the correct directlry.

I didn't know what exactly it was that caused DPSM not to be identified as monospaces, but figured it was some sort of metadata that was not set properly. And yes, same. In Font Book, DPSM is not identified as monospaced for me, either.

from guiguts-py.

cpeel avatar cpeel commented on September 28, 2024

I agree that having a sensible OS-specific default font is a great idea.

I don't think GG should be installing fonts on a user's system -- I've never seen any other app do that on any operating system. The more we can make GG act like "any other app" the easier it will be for users to know how to install / uninstall it.

I've no problem with bundling fonts and/or providing the user instructions for how to install them.

Also, for what it's worth, it seems like bundling font files in apps may be common and we could do the same?

Looks like ATSApplicationFontsPath is the macOS way to have apps use fonts included in their bundle.

from guiguts-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.