How do I use a font that a user of my screen saver might not have?
I am trying to do a little experiment with fonts. I downloaded a font that was not previously installed on my computer, and am trying to make a "Hello, World!" screen saver with that font(which I installed).
The problem is that I can not even use that font. When I attempt to make a "Hello, World!" screen saver with that font, it uses the default font. Here's the code:
#import "saverView.h"
@implementation saverView
- (id)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
self = [super initWithFrame:frame isPreview:isPreview];
if (self) {
[self setAnimationTimeInterval:1/30.0];
//either my mistake is here:
hylianFont = [NSFont fontWithName:@"Ancient Hylian - English" size:20];
attrs = [NSMutableDictionary dictionaryWithCapacity:2];
//NSForegroundColorAttributeName -- [Color green]
[attrs setValue:[NSColor greenColor] forKey: NSForegroundColorAttributeName];
// or it is here:
[attrs setValue:hylianFont forKey: NSFontAttributeName];
displayer = [[NSAttributedString alloc] initWithString:@"Hello, World!" attributes:attrs];
return self;
//... more stuff I do not use...
//simply draws "Hello, World!" in green at the top right of the screen.
//meant to draw it in the different font, but draws it in the standard font.
- (void)animateOneFrame
[displayer drawInRect:[self bounds]];
return;
@end
Where did I mistype?
I think I solved the problem. I just put the font and the screen saver in a pkg file, and make the pkg file install the font. Or I guess I could keep the font in my screen saver and test it that way. Either way, I found the answer.
Similar Messages
-
How do I use a font variation in a pages document? or other app for that matter? I no longer have the "viewer" - glyph option in the special characters pane (under edit in toolbar). I know the varaition ia available because I can see it in my font book. I depended on that alot so I need to find a way to still use character and embellishments. I don't want to have to go back to my od computer (from2007) Please Help!
I really don't understand.
The menu item is available :
Maybe, you didn't activate the tool :
Yvan KOENIG (VALLAURIS, France) mardi 2 août 2011 23:10:17
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
How to look at the slide that just showed on desktop screen saver.
Please help me look at the slide that just showed on desktop screen saver.
If you are referring to one of the default Screen Saver collections: 1) National Geographic, 2) Aerial, 3) Cosmos, or 4) Nature Patterns, they are all folders in a system Library location that contain the individual images.
In the Finder Go menu, choose Go to Folder… and copy/paste the following text into that dialog window:
/Library/Screen Savers/Default Collections
This will show the four categorical folders from the first sentence above. Double-click on the individual image(s) and they will be viewable/exportable in Preview.app. -
How can I use a photo from my files as a screen saver?
I have an LG monitor about 10" high and 16" wide. How can I send a photo from my Adobe files to my desktop as a screen saver. Because of the odd dimensions of this monitor, the one I have as a screensaver now does not show the entire photo. I need instructions how to choose one of my photos, send it to the monitor as a screen saver, and make it the correct size to show the entire photo.
You'll need to download the song from your cd to your my music folder, then open Itunes files add files or folder to the library then you find your song from your my music folder. Then you will have to create the ringtone:
http://http://www.ehow.com/how_2160460_custom-iphone-ringtones-free.html
follow the instruction to create then sync the ringtones. -
How do you use an app that you downloaded on your computer?
How do you use an app that you down loaded on your computer. I am having trouble because I can download the app just fin but when I actually want to use that app I have no idea what to do. I tried to look for any open buttons but there are none. I downloaded the app on my phone origionaly and I then I downloaded it on my laptop. the app is called arkvpn.
The apps for the iPhone will not run on Mac
-
How do I use a passcode that starts after an hour?
I have an iphone5s but I do not want to use my fingerprint to unlock it. How do I use a passcode that activates after one hour?
I have an iphone5s but I do not want to use my fingerprint to unlock it. How do I use a passcode that activates after one hour?
-
How do I use a font I installed? I installed Belgrad, it's in my font book, but it's not in the menu for pages. I'm using OS X version 10.9.3
But what version of Pages?
I located a free TTF version of Belgrad and it installed fine.
Which one do you have?
Peter -
How can I use my fonts in Illustrator (CS4) without Suitcase?
How can I use my fonts in Illustrator (CS4) without Suitcase? InDesign has a fonts folder, but not Illustrator.
i found this info from this link: http://forums.adobe.com/message/3466307. The user who asked this question stats this solution worked for them.
First in Language and text preferences in the system preferences select Hebrew as the input method.
The in Illustrator click the text tool in your document or drag to create a text frame.
While the cursor is active select a hebrew font
then go to the menu bar for the finder and where there is the American Flag pull it down and select hebrew
now go back to the document and start typing.
Remember if you do not have the ME version you have to have it flush right and type backwards. -
How can I change the font in emails sent on my ipad or at least have it retain the font I copy
How can I change the font in emails sent on my ipad or at least have the email retain the font that I copy & paste into it?
There is no way that I know of within the native iPad email app. You might want to search the app store for a third party app that lets you change fonts if this is important.
-
How can I use a downloaded song as an alarm on my timer? Not a ringtone, a song. It is only 30 sec. long.
This is not particularly helpful. I've looked on 3 websites and none of them match my configuration of iTunes. I've gotten as far as creating an AAC file and that is it. Can't find the .m4s designation to change it.
-
How do I eject a DVD that just keeps turning in drive but will not eject?
How do I eject a DVD that just keeps turning in drive but will not eject?
check out Kappy's user tip:
Five ways to eject a stuck CD or DVD from the optical drive
Ejecting the stuck disc can usually be done in one of the following ways:
1. Restart the computer and after the chime press and hold down the left mouse button until the disc ejects.
2. Press the Eject button on your keyboard.
3. Click on the Eject button in the menubar.
4. Press COMMAND-E.
5. If none of the above work try this:
Open the Terminal application in your Utilities folder. At the prompt enter or paste the following: /usr/bin/drutil eject.
If this fails then try this:
Boot the computer into single-user mode. At the prompt enter the same command as used above.
To restart the computer enter "reboot" at the prompt without quotes. -
How do i use my own image with keying (or green screen)
how do i use my own image witrh keying (or green screen)
Put your sky clip on a layer below the clip you want to key. One or the other will be a connected clip. Apply the Keying filter to foreground clip (the one with the green screen). The green will be seen as transparent and the sky will show through as the BG. Adjust as necessary in the Inspector.
Good luck.
Russ -
How do I use my ipod in the car without it constantly charging? I have to use a docking cable into the USB port because the 3.5mm to 3.5mm jack I bought doesn't work with the ipod (although it does work with an MP3 player). My ipod is a 5th generation 80GB classic.
I know this is old - but did you ever get this working. Thinking of getting a 780 ti card and I have an older mac with the mini-displayport too.
-
How do i fix my 3gs that is stuck in recovery mode and will not restore?
how do i fix my 3gs that is stuck in recovery mode and will not restore?
well if it's in recovery mode, all of the data is already gone. this article mey help you get it working again: http://support.apple.com/kb/HT1808
-
How do I get rid of the "AirPlay sign" on my TV when I am using Apple TV to show my photos as screen saver?
Settings > AirPlay > Conference Room Display > Off.
Maybe you are looking for
-
I have a PC. I would like to sync my iPad2 via itunes. My computer recognizes my ipad but itunes does not. I have uninstalled itunes, shut down the computer and restarted plus reinstalled itunes. I visited the Apple store there is no problem with
-
Calling a BSP application from universal worklist
Hi All, I want to call a BSP application, when a workitem is clicked in Universal Worklist(Enterprise Portal) I have configured the Task Type in SWFVISU transaction, with Visualization type BSP standard & in visualization parameter i entered, APPLICA
-
MS-Word.EXE file invocation through java?
Is it possible to run winword.exe from the system through java. Is there any way to invoke any application file without using the absolute path.
-
I placed a Word document in InDesign (CS 5.5, Windows) which has both footnotes and endnotes. Everything imported ok, but the endnote references in the text are normal position, I'd like them to be superscript. I can't do a Find/Change because there'
-
Unread mail on dock icon?
Hi, Been using Mail for a couple of months now but I don't see the number of unread mails thing on the mail icon in the dock. Why is this? Does it only show unread mails in the inbox? I use rules to filter mail into smartboxes. Also, this applies to