Results 1 to 16 of 16
- 04-15-2010, 10:50 AM #1
Adding new fonts to the list of available font??
Hi. I had changed the font of a label to Wide Latin 11 Plain which is by default not present in the netbeans 6.8.. i was not aware of that.... i mean from where had it come to the list of available fonts in the netbeans.. because after formatting my system last night when i opened my project in the netbeans.. i found no such font in the library..i may have been added to the library after i installed msOffice 2010.. perhaps. i don't know.:eek:
But i neeed to keep this font for my labels.. my question is how can i add new font to netbeans and also to my project.. so that whenever i export my project to a new system the same font lasts.
i download the above stated font from the following link but don't know what to do the next.
NewFonts.net - Wide Latin fontThe Quieter you become the more you are able to hear !
- 04-15-2010, 11:15 AM #2
Yeah... I was right. When i installed the MSOffice 2010 this font was also installed on my system.. How i confirmed this as.. these fonts are not available on MSOffice 2003. Also I downloaded this font and installed it separately.. and it was automatically added to the list of available fonts in the netbeans..
But my problem remains the same these fonts not lasts when i export my project to some other system... i mean like we add jar files to our projects ;; isn't there any way we can add fonts to our projects??Last edited by Stephen Douglas; 04-15-2010 at 04:50 PM.
The Quieter you become the more you are able to hear !
- 04-15-2010, 04:50 PM #3
anybody??????????????????
The Quieter you become the more you are able to hear !
- 04-15-2010, 04:56 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 23
Fonts are not bind with any application. Each application retrieve by the system.
- 04-15-2010, 05:19 PM #5
I need to deploy my application at the client site... In that case what should be the best practice?? please suggest.
I mean when i install my application at the client site.. how can i install the required fonts as well along? exactly as msoffice does.;)The Quieter you become the more you are able to hear !
- 04-15-2010, 05:23 PM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 23
Within the application you've to install the font. Or externally you've to ask from the user to install. My suggestion is at that point first of all you've to check that application installing machine relevant fonts are available, and if not you've to load a default font. Otherwise your application ends-up with an error.
- 04-15-2010, 05:33 PM #7Within the application you've to install the font.The Quieter you become the more you are able to hear !
- 04-15-2010, 05:45 PM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 23
You have to think a way to install a font in Java. That's all. For an example, in Windows, all the fonts are located in C:\WINDOWS\Fonts path. So what you can do is, simply copy the font to that location when you start the application. But if you are using your application in UNIX systems, then you have to think a way to related with relevant OS.
- 04-15-2010, 07:59 PM #9Each application retrieve by the system.The Quieter you become the more you are able to hear !
- 04-16-2010, 02:44 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 23
As I suggest you, you have to validate your font at the time of application loading. If it's not found then use default fonts. Say those initial validation test within there own structure, then deleting those fonts are not effected. But most of the application wont do that. So as far as I know NetBeans not using such fronts included in it's own folders. Delete all the fonts and give a try. :p But actually you cannot delete all the font in the system. Because your system, or the OS use some font there too, means in use all the time.
- 04-16-2010, 09:28 AM #11Delete all the fonts and give a try.:p
Tahoma Bold(True Type)
Tahoma(True Type)
Script(All res)
Modern(All res)
Microsoft Sans Serif(True Type)
Franklin Gothic Medium Italic
Franklin Gothic Medium
and those that were available in the netbeans after deleting all the fonts from the specified directory....
Dialog
DialogInput
*Franklin Gothic Medium
Lucida Bright
Lucida Sans
Lucida Sans Typewwriter
Marlett
*Microsoft Sans Serif
Monospaced
SansSerif
Serif
*Tahoma
As you can see that the fonts that are marked with an astrick sign in the list of available fonts in the netbeans are also available in the list of fonts in c:\windows\fonts...
My questions are::
1. Why not all the fonts available in the c:\windows\fonts are shown in the netbeans??
2. From where has netbeans fetched the extra fonts that are actually not available in c:\windows\fonts??
3. If netbeans has fetched these extra fonts from its personal directory then how can i make "my application" to fetch the required fonts from its personal directory?? that are not available in c:\windows\fonts?The Quieter you become the more you are able to hear !
-
Have you read the Sun Swing tutorial section on Fonts? If not, it may be worth your while as it seems to have the solution to your problem: Font Tutorial
- 04-17-2010, 03:41 PM #13
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 23
Yeah, seems that my conclusion is wrong then. Because as you check that some fonts are not listed in font folder instead IDE font list. That mean some fonts are retrieve from another resource, may be NetBeans has some default fonts.
I think best solution would be handle required font for you withing your application.
- 04-17-2010, 09:52 PM #14handle required font for you withing your application.The Quieter you become the more you are able to hear !
-
- 04-18-2010, 02:33 PM #16
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 23
Yeah, you've already got a nice explanation from Fubarable. Go through that, actually just opening the page you can find the solution there.
Similar Threads
-
Fonts (Changing Fonts and Color's)
By dbashby in forum New To JavaReplies: 10Last Post: 04-06-2009, 01:32 AM -
[New to java]: HoW to set font from the available list in the system
By pndiwakar in forum AWT / SwingReplies: 4Last Post: 03-10-2009, 06:31 AM -
adding list to an array element
By Preethi in forum New To JavaReplies: 5Last Post: 09-25-2008, 04:23 AM -
Adding List to MIDlet Display
By Java Tip in forum Java TipReplies: 0Last Post: 11-23-2007, 02:07 PM -
adding a variable in order to a list
By Jrr in forum New To JavaReplies: 2Last Post: 11-19-2007, 01:10 AM
Bookmarks