Comments (6)
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.
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.
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.
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.
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.
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.
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)
- Replace invalid syntax error message HOT 4
- `\C bad python \E` causes traceback
- Look at soft-wrapping in the text window HOT 2
- A request for search box behavior HOT 6
- Make one-line change to 'Footnote Fixup' code HOT 3
- Disable WF "Suspects Only" checkbox when it's not relevant
- Remove split screen debug messages & potentially unnecessary code
- WF bug with number ranges
- WF bug with Ital/Bold/etc
- Keystrokes being ignored from dialogs
- Add HTML autogeneration
- Add HTML Image tools
- Add HTML Auto table feature
- Add HTML validator
- Add CSS Validator
- Add HTML Link Checker
- Add HTML Tidy
- Add unmatched HTML tag check
- Bundle/integrate/link to ebookmaker HOT 2
- Further image viewer improvements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guiguts-py.