Giter VIP home page Giter VIP logo

Comments (9)

justvanrossum avatar justvanrossum commented on September 15, 2024

I can't read the discord thread. What is the use case for using system fonts?

from drawbot.

roberto-arista avatar roberto-arista commented on September 15, 2024

For this particular case, I was trying to annotate the glyph cell background in the font overview with a system font.

from drawbot.

justvanrossum avatar justvanrossum commented on September 15, 2024

When you say "the font overview", do you mean "RoboFont's font overview"? If so, how does that use DrawBot?

from drawbot.

roberto-arista avatar roberto-arista commented on September 15, 2024
  1. yes
  2. it uses a subset of drawBot functionalities: https://www.robofont.com/documentation/reference/api/mojo/mojo-drawingtools/

from drawbot.

justvanrossum avatar justvanrossum commented on September 15, 2024

But isn't that implementation separate from DrawBot? I see how it's useful there, but not immediately in DrawBot-proper.

from drawbot.

typemytype avatar typemytype commented on September 15, 2024

CoreText does not allow font names starting with a . (those are system fonts) but there are available and accessible with NSFont. systemFontOfSize_(size) .

DrawBot already supports NSImage object in image(..)

An other option would be to have a small wrapper for system fonts.

from drawbot.

justvanrossum avatar justvanrossum commented on September 15, 2024

CoreText does not allow font names starting with a . (those are system fonts) but there are available and accessible with NSFont. systemFontOfSize_(size) .

I understand that. Why do we need to be able to use them in DrawBot?

from drawbot.

typemytype avatar typemytype commented on September 15, 2024

Why do we need to be able to use them in DrawBot?

Because its strange Apple does not allow systemFonts .<fontName> anymore, even they are installed and accessible with NSFont.systemFontOfSize_ and similar. The other option is to download all these fonts and install them if you would like to use them.

from drawbot.

justvanrossum avatar justvanrossum commented on September 15, 2024

Because its strange Apple does not allow systemFonts

That is not an answer to my question, though...

I'm not necessarily opposed to accepting NSFont (and or CGFont then?) in all font-releated drawbot calls, but so far the only answer I got for "why do we need this in DrawBot" is a use case for a drawbot-like API which isn't DrawBot.

from drawbot.

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.