Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

How to install a font? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Re: Is there a TargetLion yet?
Next thread: Hosting for web edition


Re: [OT- Soft of] Thread Hijacking   -   Rubber Chicken Software Co.
  How to install a font?   -   Lennox Jacob
   Re: How to install a font?   -   Stéphane Mons <
    Re: How to install a font?   -   Lennox Jacob
   Re: How to install a font?   -   Tim Jones
   Re: How to install a font?   -   Norman Palardy
   Re: How to install a font?   -   Stéphane Mons <
    Re: How to install a font?   -   Lennox Jacob

How to install a font?
Date: 28.09.11 13:51 (Wed, 28 Sep 2011 05:51:54 -0700 (PDT))
From: Lennox Jacob
Hello,

I am trying to install a font but I cannot get it, I have ...

  #if TargetMacOS
    Dim myfontname as FolderItem = SpecialFolder.Desktop.Child("my font name")
    
    If myfontname.Exists then
      If not SpecialFolder.Fonts.Child("myfontname").Exists then
        myfontname.Visible = True
        myfontname.MoveFileTo SpecialFolder.Fonts     'myfontname.CopyFileTo SpecialFolder.Fonts
      else
        myfontname.Visible = False
      end if
    end if
  #else
  #endif

Any suggestions?

Thanks.

Lennox

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: How to install a font?
Date: 28.09.11 17:56 (Wed, 28 Sep 2011 18:56:36 +0200)
From: Stéphane Mons <
And remember that the OS is not constantly staring at what you are doing. It takes changes into account only when you launch your application and/or if you change the modification date of the application (you can use the command "touch" from the Terminal).

Le 28 sept. 2011 à 18:23, Tim Jones a écrit :

> On Sep 28, 2011, at 8:29 AM, Lennox Jacob wrote:
>
>> Hi Stéphane
>>
>> I created a folder in Contents and named it Library and then I created a folder named Fonts in Library and inserted the font in that Fonts folder but it did not work in MacOS10.6.7 that would have been the choice I prefer.
>>
>> Am I doing it correctly?
>
> Hi Lennox,
>
> You're close, but pay close attention to item 9 in that Link that Norman provided:
>
> 9. In the Contents folder of the package, open the info.plist file in your favorite editor. If you are using the Plist editor add a new Child and add the key ATSApplicationFontsPath. Plist editor will display it as "Application fonts resource path" and set the value to the name of the folder you created in step 7. In my example I called it "AppFonts" so that is what I put as the Value.
>
> That should get you where you want to be.

5 REM My Signature
10 PRINT "Stéphane"
20 GOTO 10



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: How to install a font?
Date: 28.09.11 18:56 (Wed, 28 Sep 2011 10:56:13 -0700 (PDT))
From: Lennox Jacob
Hi Stéphane,

Where could I download your example, AppFonts?

Thanks.

Lennox


----- Original Message -----
From: Stéphane Mons <<email address removed>>
To: Realbasic NUG <<email address removed>>
Cc:
Sent: Wednesday, September 28, 2011 12:56 PM
Subject: Re: How to install a font?

And remember that the OS is not constantly staring at what you are doing. It takes changes into account only when you launch your application and/or if you change the modification date of the application (you can use the command "touch" from the Terminal).

Le 28 sept. 2011 à 18:23, Tim Jones a écrit :

> On Sep 28, 2011, at 8:29 AM, Lennox Jacob wrote:
>
>> Hi Stéphane
>>
>> I created a folder in Contents and named it Library and then I created a folder named Fonts in Library and inserted the font in that Fonts folder but it did not work in MacOS10.6.7 that would have been the choice I prefer.
>>
>> Am I doing it correctly?
>
> Hi Lennox,
>
> You're close, but pay close attention to item 9 in that Link that Norman provided:
>
> 9. In the Contents folder of the package, open the info.plist file in your favorite editor. If you are using the Plist editor add a new Child and add the key ATSApplicationFontsPath. Plist editor will display it as "Application fonts resource path" and set the value to the name of the folder you created in step 7. In my example I called it "AppFonts" so that is what I put as the Value.
>
> That should get you where you want to be.

5 REM My Signature
10 PRINT "Stéphane"
20 GOTO 10



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: How to install a font?
Date: 28.09.11 17:23 (Wed, 28 Sep 2011 09:23:47 -0700)
From: Tim Jones
On Sep 28, 2011, at 8:29 AM, Lennox Jacob wrote:

> Hi Stéphane
>
> I created a folder in Contents and named it Library and then I created a folder named Fonts in Library and inserted the font in that Fonts folder but it did not work in MacOS10.6.7 that would have been the choice I prefer.
>
> Am I doing it correctly?

Hi Lennox,

You're close, but pay close attention to item 9 in that Link that Norman provided:

9. In the Contents folder of the package, open the info.plist file in your favorite editor. If you are using the Plist editor add a new Child and add the key ATSApplicationFontsPath. Plist editor will display it as "Application fonts resource path" and set the value to the name of the folder you created in step 7. In my example I called it "AppFonts" so that is what I put as the Value.

That should get you where you want to be.

HTH,
Tim

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: How to install a font?
Date: 28.09.11 15:36 (Wed, 28 Sep 2011 08:36:21 -0600)
From: Norman Palardy

On Sep 28, 2011, at 8:16 AM, Stéphane Mons wrote:

> You cannot write to the /Library/Fonts folder without admin access
> but you can write to ~/Library/Fonts.
>
> However, if this is a font that you want to use inside your
> application only, you should be able to add it directly into your
> application bundle in Contents/Library/Fonts.
>

http://www.realsoftwareblog.com/2011/09/os-x-fonts.html

Norman Palardy

Real World 2012, THE Real Studio Event of the year!
http://realsoftware.com/community/realworld.php

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: How to install a font?
Date: 28.09.11 15:16 (Wed, 28 Sep 2011 16:16:55 +0200)
From: Stéphane Mons <
You cannot write to the /Library/Fonts folder without admin access but you can write to ~/Library/Fonts.

However, if this is a font that you want to use inside your application only, you should be able to add it directly into your application bundle in Contents/Library/Fonts.

Le 28 sept. 2011 à 14:51, Lennox Jacob a écrit :

> Hello,
>
> I am trying to install a font but I cannot get it, I have ...
>
>
> #if TargetMacOS
> Dim myfontname as FolderItem = SpecialFolder.Desktop.Child("my font name")
>
> If myfontname.Exists then
> If not SpecialFolder.Fonts.Child("myfontname").Exists then
> myfontname.Visible = True
> myfontname.MoveFileTo SpecialFolder.Fonts 'myfontname.CopyFileTo SpecialFolder.Fonts
> else
> myfontname.Visible = False
> end if
> end if
> #else
> #endif
>
>
> Any suggestions?
>
> Thanks.
>
> Lennox

5 REM My Signature
10 PRINT "Stéphane"
20 GOTO 10



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: How to install a font?
Date: 28.09.11 16:29 (Wed, 28 Sep 2011 08:29:26 -0700 (PDT))
From: Lennox Jacob
Hi Stéphane

I created a folder in Contents and named it Library and then I created a folder named Fonts in Library and inserted the font in that Fonts folder but it did not work in MacOS10.6.7 that would have been the choice I prefer.

Am I doing it correctly?

Thanks.

Lennox.


----- Original Message -----
From: Stéphane Mons <<email address removed>>
To: Realbasic NUG <<email address removed>>
Cc:
Sent: Wednesday, September 28, 2011 10:16 AM
Subject: Re: How to install a font?

You cannot write to the /Library/Fonts folder without admin access but you can write to ~/Library/Fonts.

However, if this is a font that you want to use inside your application only, you should be able to add it directly into your application bundle in Contents/Library/Fonts.

Le 28 sept. 2011 à 14:51, Lennox Jacob a écrit :

> Hello,
>
> I am trying to install a font but I cannot get it, I have ...
>
>
>  #if TargetMacOS
>    Dim myfontname as FolderItem = SpecialFolder.Desktop.Child("my font name")
>   
>    If myfontname.Exists then
>      If not SpecialFolder.Fonts.Child("myfontname").Exists then
>        myfontname.Visible = True
>        myfontname.MoveFileTo SpecialFolder.Fonts    'myfontname.CopyFileTo SpecialFolder.Fonts
>      else
>        myfontname.Visible = False
>      end if
>    end if
>  #else
>  #endif
>
>
> Any suggestions?
>
> Thanks.
>
> Lennox

5 REM My Signature
10 PRINT "Stéphane"
20 GOTO 10



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>