Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    May 2007
    Posts
    33

    Grin Is it possible to use not installed TTF file as a font?

    Hello, I'd like to make a project, which would be similar to Windows Font Viewer - I want to have there a sentence, which would be typed in a font, which ISN'T installed (that font will be only in Docs folder as a TTF file). Is it possible (and how)? Thank you

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    if the font is already in the project then its dose not need to be registerd,

    register the fonts on your system, make your project and make sure you have labels with the text in the font you want to be displayed, hide them if they are not needed right away

    now when you compile the project the custom fonts will be embedded in to the project and will display without registering them on the system.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    May 2007
    Posts
    33
    Quote Originally Posted by RizlaUK View Post
    if the font is already in the project then its dose not need to be registerd,

    register the fonts on your system, make your project and make sure you have labels with the text in the font you want to be displayed, hide them if they are not needed right away

    now when you compile the project the custom fonts will be embedded in to the project and will display without registering them on the system.
    Thank you, but I want to use a font, which isn't installed/registered on my computer...

  4. #4
    Join Date
    May 2007
    Posts
    33
    Nobody? Please, it would be very helpful

  5. #5
    Join Date
    Dec 2007
    Location
    Netherlands
    Posts
    81
    You will have to have the font installed/registered on your own computer and then it will show properly on the target computer (even if the target computer doesn't have the same font installed).

    If you have the font (as you write, not installed, not registered) but sitting in a docs folder, then it does "nothing". And if you have the font, why not installing it? Makes life easier

    Hope this helps,
    If not, please clarify your question a bit more and let us know how and why you want to use that font.
    Registering/installing a font is as easy as opening the Fonts folder via Control Panel and choosing File > Install new font. Go to the folder with that TTF, select it and click Install. And then you can just use that TTF in your project. Without installing it first, you can't use it in your project.

    Loes
    Last edited by Loes; 07-03-2008 at 10:50 AM.

  6. #6
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    You may register a font just until the next reboot, is enough to be able to display it in the application. See the documentation of System.RegisterFont() for details...

    Ulrich

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    Thank you, but I want to use a font, which isn't installed/registered on my computer...
    Thats like trying to use a soundcard that isent installed on the computer, its just not going to happen, please apply some logic!
    Open your eyes to Narcissism, Don't let her destroy your life!!

  8. #8
    Join Date
    Dec 2007
    Location
    Netherlands
    Posts
    81
    Quote Originally Posted by Hofiiik View Post
    Hello, I'd like to make a project, which would be similar to Windows Font Viewer - I want to have there a sentence, which would be typed in a font, which ISN'T installed (that font will be only in Docs folder as a TTF file). Is it possible (and how)? Thank you
    Hofiiik,

    Sorry, I haven't read your original post properly!!

    Okay, you want to create a Font Viewer and yes, then it totally makes sense that the font is not installed, because you want to display how the font looks before it is actually installed. Sorry I was so dense.

    I don't have the answer for you - I am more the drag and drop type user of AMS and I'm not good in scripting/coding at all.

    I guess you need to have an action where, when a user selects a name of a font, it actually links to one of the various fonts in the docs folder in your project. Then your line of text (say The Quick Brown Fox etc) displays the line in the chosen font.

    If you are familiar with scripting, perhaps you can take a look inside the source code of a free font viewer (open source). It might help you to know where to start:
    http://opcion.sourceforge.net/


    Again, I can't help you, but I hope one of the real gurus here in the list will be able to set you on the right track, after re-reading your original post
    Sorry about not reading more carefully in the first place...

    Loes
    Last edited by Loes; 07-04-2008 at 05:34 AM. Reason: typo

  9. #9
    Join Date
    May 2006
    Posts
    5,380
    is dosent matter how you want to use or view the font, the fact still remains that you can not use a font in ANY app, webpage, rtf file, anything at all, without it being registerd on the system

    you could register the font when the user selects it and unregister it when another font is selected so only 1 font at a time will ever be registerd on the users system, that is the only way i see round it

    on a side note, your users will need to have admin access to register and unregister the fonts.

    only other way is to make a image od the text in the font you want and use the image and not a text object.
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. Check HTTP for file...
    By eleslie in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 05-15-2004, 12:21 PM
  2. Audio Tracks Project
    By Michael in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 03-18-2004, 10:58 PM
  3. Copying a File to the Hard Drive
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 01:06 PM
  4. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts