• Login
sketchucation logo sketchucation
  • Login
๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

How to use custom fonts that are not installed?

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 1.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    renderiza
    last edited by 3 Oct 2017, 15:27

    Hi,

    I am creating a user interface with view.draw2d and since drawing images is not easy I want to use custom fonts that look like icons. Here is an example... Custom Font

    Can I load a custom font provided with the plugin even though it's not installed on user's computer?

    [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 3 Oct 2017, 16:28

      The easiest way is to get the user to install it separately.
      Otherwise you need to devise 'system' calls to do it - different on PC and MAC...
      https://blogs.technet.microsoft.com/rspitz/2010/09/25/how-to-install-a-font-from-the-command-line-on-windows-7/
      https://apple.stackexchange.com/questions/240381/installing-fonts-from-terminal-instead-of-font-book

      PS: It's 'custom' ๐Ÿ˜‰

      TIG

      1 Reply Last reply Reply Quote 0
      • R Offline
        renderiza
        last edited by 3 Oct 2017, 17:12

        Hi,

        I was not expecting it to be that difficult and don't think its practical anymore to use custom fonts on my plugins.

        Maybe I'll start looking into drawing images again. ๐Ÿ˜•

        Thanks for your help!

        [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement