PDA

View Full Version : Is it possible to use not installed TTF file as a font?


Hofiiik
06-25-2008, 07:22 AM
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

RizlaUK
06-25-2008, 09:25 AM
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.

Hofiiik
06-26-2008, 07:52 AM
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...

Hofiiik
06-30-2008, 12:48 PM
Nobody? Please, it would be very helpful :huh

Loes
07-03-2008, 11:42 AM
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

Ulrich
07-03-2008, 12:40 PM
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

RizlaUK
07-03-2008, 02:45 PM
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!

Loes
07-04-2008, 06:33 AM
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

RizlaUK
07-04-2008, 11:33 AM
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.