- Tcl Tutorial
- Tk Tutorial
- Tcl/Tk Useful Resources
- Selected Reading
There are a number of widgets that supports displaying text. Most of these provides the option of font attribute. The syntax for creating a font is shown below −
Options
The options available for the font create are listed below in the following table −
Sr.No. | Syntax & Description |
---|---|
1 | -family familyName The name of font family. |
2 | -size number The size of font. |
3 | -weight level The weight for font. |
A simple example for a font creation is shown below −
When we run the above program, we will get the following output −
Charcoal and Charcoal CY are two different fonts. Charcoal is the Western one, and Charcoal CY is Cyrillic. On my computer, Charcoal CY.dfont is in /Library/Fonts, while Charcoal is in /System Folder/Fonts (the OS 9 System folder). You can just copy it from one of the Macs that has it to the ones that don't.
To get all the fonts available, we can use the following command −
When we run the above command, we will get the following output −
Hi,
I thought I was able to have the old OS9/Classic font Charcoal on my Powerbook without keeping Classic. (I've used it that way for about 2 years now.) I have just done an Erase and Install and set everything else up as best I can but haven't figured out how to keep that font but not keep Classic.
It works fine with Classic installed. I tried throwing out they System folder contents (and the OS9 Application folder, rebooting and throwing out the System Folder), but Charcoal went away. (Charcoal CY stayed but I don't use that.) Is there a way to keep Charcoal but not keep the rest of Classic/OS 9?
Tnank you.
John L
I thought I was able to have the old OS9/Classic font Charcoal on my Powerbook without keeping Classic. (I've used it that way for about 2 years now.) I have just done an Erase and Install and set everything else up as best I can but haven't figured out how to keep that font but not keep Classic.
It works fine with Classic installed. I tried throwing out they System folder contents (and the OS9 Application folder, rebooting and throwing out the System Folder), but Charcoal went away. (Charcoal CY stayed but I don't use that.) Is there a way to keep Charcoal but not keep the rest of Classic/OS 9?
Tnank you.
John L
15' Powerbook/1.67 Ghz (DL/HR), Mac OS X (10.4.11), 1.5 gb RAM, Fantom 250 gb external firewire drive
Posted on