Re: RE: Re: Re: Re: RE: Font Family, High Density xFont
LionScribe, Thanks for all your help. I did as you said and the font works for a new empty project. Regarding the older OS versions (pre 5.0 I presume) I will need to use just a font and not a font family. To clarify. I will need to check if the OS is 5.0 or up and use a font family if so. If the OS is less than 5.0 I need to use a font. Do I have this correct? Looks like I'll have a bit of work converting resources and importing my source into my new project. Sigh. Jamie Te easiest thing for you to do, is to update PilRc to version 3.0 (as per previous instructions from Ben), convert all your constructer resources to the PilRC type (there are some utility programs that can do that for you), then make sure your project uses the Palm OS Linker, (You change it in the project's settings. If you do not know to do it, it would be easier to just create a new project from scratch using the new project wizard, and copying in your old files). Then add the following lines to your resource text file (rcp file), (change it based on the file names); FONTFAMILY ID 128 BEGIN FONT Fonts/StdLow.pfn DENSITY 72 FONT Fonts/StdHigh.pfn DENSITY 144 END You should also not forget to add the standard font type, because the new ones don't work on older OS's, like this; FONT 128 FONTID 128 Fonts/StdLow.pfn The project should compile smoothly, though the High-Density font did not come out perfect on my test. Maybe it's a bug that will be fixed in next release. So if you need the program soon, and you can't wait for bug fixes, then try it out in an empty project, before making the total move. Good Luck, LionScribe -- Composed with Newz Crawler 1.4 http://www.newzcrawler.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: RE: Re: Re: Re: RE: Font Family, High Density xFont
Correct. Also you should check for the screen's density using WinGetSupportedDensity(); And don't feel so bad about converting, because the new project will be much easier to handle. LionScribe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jamie Macleod Sent: Monday, September 08, 2003 10:46 PM To: Palm Developer Forum Subject: Re: RE: Re: Re: Re: RE: Font Family, High Density xFont LionScribe, Thanks for all your help. I did as you said and the font works for a new empty project. Regarding the older OS versions (pre 5.0 I presume) I will need to use just a font and not a font family. To clarify. I will need to check if the OS is 5.0 or up and use a font family if so. If the OS is less than 5.0 I need to use a font. Do I have this correct? Looks like I'll have a bit of work converting resources and importing my source into my new project. Sigh. Jamie Te easiest thing for you to do, is to update PilRc to version 3.0 (as per previous instructions from Ben), convert all your constructer resources to the PilRC type (there are some utility programs that can do that for you), then make sure your project uses the Palm OS Linker, (You change it in the project's settings. If you do not know to do it, it would be easier to just create a new project from scratch using the new project wizard, and copying in your old files). Then add the following lines to your resource text file (rcp file), (change it based on the file names); FONTFAMILY ID 128 BEGIN FONT Fonts/StdLow.pfn DENSITY 72 FONT Fonts/StdHigh.pfn DENSITY 144 END You should also not forget to add the standard font type, because the new ones don't work on older OS's, like this; FONT 128 FONTID 128 Fonts/StdLow.pfn The project should compile smoothly, though the High-Density font did not come out perfect on my test. Maybe it's a bug that will be fixed in next release. So if you need the program soon, and you can't wait for bug fixes, then try it out in an empty project, before making the total move. Good Luck, LionScribe -- Composed with Newz Crawler 1.4 http://www.newzcrawler.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Re: Re: RE: Font Family, High Density xFont
Jamie, What IDE are you using, which version? LionScribe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ben Combee Sent: Sunday, September 07, 2003 12:20 AM To: Palm Developer Forum Subject: Re: Re: Re: RE: Font Family, High Density xFont At 10:48 AM 9/6/2003, Jamie Macleod wrote: Here's a question for you. Is it possible to completely compile the font family using the new PilRC and than just add in the font family as a data object? If you are using the Palm OS SDK 5.0 R2 with its version of PalmRez, yes. The latest PalmRez and Constructor supports a tRAW type that encapsulates a new data type and ID and the raw data from a file, such that when going through tRAW, the output resource isn't modified at all by PalmRez but is copied verbatim. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: RE: Re: Re: RE: Font Family, High Density xFont
Codewarrior 9 sp1 Jamie, What IDE are you using, which version? LionScribe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ben Combee Sent: Sunday, September 07, 2003 12:20 AM To: Palm Developer Forum Subject: Re: Re: Re: RE: Font Family, High Density xFont At 10:48 AM 9/6/2003, Jamie Macleod wrote: Here's a question for you. Is it possible to completely compile the font family using the new PilRC and than just add in the font family as a data object? If you are using the Palm OS SDK 5.0 R2 with its version of PalmRez, yes. The latest PalmRez and Constructor supports a tRAW type that encapsulates a new data type and ID and the raw data from a file, such that when going through tRAW, the output resource isn't modified at all by PalmRez but is copied verbatim. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- Composed with Newz Crawler 1.4 http://www.newzcrawler.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: RE: Re: Re: RE: Font Family, High Density xFont
IDE - 5.1.1.1117 What IDE are you using, which version? LionScribe -- Composed with Newz Crawler 1.4 http://www.newzcrawler.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Re: Re: Re: RE: Font Family, High Density xFont
Is there any documentation on how to create a font family and include it in Codewarrior? At 10:48 AM 9/6/2003, Jamie Macleod wrote: Here's a question for you. Is it possible to completely compile the font family using the new PilRC and than just add in the font family as a data object? If you are using the Palm OS SDK 5.0 R2 with its version of PalmRez, yes. The latest PalmRez and Constructor supports a tRAW type that encapsulates a new data type and ID and the raw data from a file, such that when going through tRAW, the output resource isn't modified at all by PalmRez but is copied verbatim. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- Composed with Newz Crawler 1.4 http://www.newzcrawler.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Re: Re: Re: RE: Font Family, High Density xFont
Te easiest thing for you to do, is to update PilRc to version 3.0 (as per previous instructions from Ben), convert all your constructer resources to the PilRC type (there are some utility programs that can do that for you), then make sure your project uses the Palm OS Linker, (You change it in the project's settings. If you do not know to do it, it would be easier to just create a new project from scratch using the new project wizard, and copying in your old files). Then add the following lines to your resource text file (rcp file), (change it based on the file names); FONTFAMILY ID 128 BEGIN FONT Fonts/StdLow.pfn DENSITY 72 FONT Fonts/StdHigh.pfn DENSITY 144 END You should also not forget to add the standard font type, because the new ones don't work on older OS's, like this; FONT 128 FONTID 128 Fonts/StdLow.pfn The project should compile smoothly, though the High-Density font did not come out perfect on my test. Maybe it's a bug that will be fixed in next release. So if you need the program soon, and you can't wait for bug fixes, then try it out in an empty project, before making the total move. Good Luck, LionScribe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jamie Macleod Sent: Sunday, September 07, 2003 10:49 PM To: Palm Developer Forum Subject: Re: Re: Re: Re: RE: Font Family, High Density xFont Is there any documentation on how to create a font family and include it in Codewarrior? At 10:48 AM 9/6/2003, Jamie Macleod wrote: Here's a question for you. Is it possible to completely compile the font family using the new PilRC and than just add in the font family as a data object? If you are using the Palm OS SDK 5.0 R2 with its version of PalmRez, yes. The latest PalmRez and Constructor supports a tRAW type that encapsulates a new data type and ID and the raw data from a file, such that when going through tRAW, the output resource isn't modified at all by PalmRez but is copied verbatim. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- Composed with Newz Crawler 1.4 http://www.newzcrawler.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Re: Re: RE: Font Family, High Density xFont
Yea I've read everything I can find on it. Thanks anyways. I may try cutting chunks of the glyphs out or get it working for a very small subset and see if I can pinpoint were the problem is. Jamie At 11:44 PM 9/5/2003, Jamie Macleod wrote: I did all this. Compiling the fonts with the latest version of the PilRC. I also tried the one that comes with CW. I than include the fonts as data in CW 9. After all this I still get the same error when linking. I've also tried adding/deleting glyphs. I'm about ready to pull my hair out here. This shouldn't be that hard. I wish I had better information. PalmRez is complaining about your font info. It might be that the 0x81 glyph is the one for the missing character. Have you read the font specification in the Palm OS SDK 5 Reference -- that might provide insight. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- Composed with Newz Crawler 1.4 http://www.newzcrawler.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Re: Re: RE: Font Family, High Density xFont
Here's a question for you. Is it possible to completely compile the font family using the new PilRC and than just add in the font family as a data object? At 11:44 PM 9/5/2003, Jamie Macleod wrote: I did all this. Compiling the fonts with the latest version of the PilRC. I also tried the one that comes with CW. I than include the fonts as data in CW 9. After all this I still get the same error when linking. I've also tried adding/deleting glyphs. I'm about ready to pull my hair out here. This shouldn't be that hard. I wish I had better information. PalmRez is complaining about your font info. It might be that the 0x81 glyph is the one for the missing character. Have you read the font specification in the Palm OS SDK 5 Reference -- that might provide insight. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- Composed with Newz Crawler 1.4 http://www.newzcrawler.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Re: Re: RE: Font Family, High Density xFont
At 10:48 AM 9/6/2003, Jamie Macleod wrote: Here's a question for you. Is it possible to completely compile the font family using the new PilRC and than just add in the font family as a data object? If you are using the Palm OS SDK 5.0 R2 with its version of PalmRez, yes. The latest PalmRez and Constructor supports a tRAW type that encapsulates a new data type and ID and the raw data from a file, such that when going through tRAW, the output resource isn't modified at all by PalmRez but is copied verbatim. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Re: RE: Font Family, High Density xFont
I did all this. Compiling the fonts with the latest version of the PilRC. I also tried the one that comes with CW. I than include the fonts as data in CW 9. After all this I still get the same error when linking. I've also tried adding/deleting glyphs. I'm about ready to pull my hair out here. This shouldn't be that hard. Jamie At 04:09 PM 9/5/2003, Jamie Macleod wrote: So how do I use this in CodeWarrior? If you have CodeWarrior for Palm OS V9 and are using the Palm OS 68K linker, you just download the ZIP file and replace the PILRC.EXE file in bin/plugins/support/Palm_OS with the new one. If you are using a previous version of CodeWarrior for Palm OS or are using Neil Rhodes' plugin with the Mac OS 68K linker, you'll have to wait for Neil to do a new plugin build. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Re: RE: Font Family, High Density xFont
At 11:44 PM 9/5/2003, Jamie Macleod wrote: I did all this. Compiling the fonts with the latest version of the PilRC. I also tried the one that comes with CW. I than include the fonts as data in CW 9. After all this I still get the same error when linking. I've also tried adding/deleting glyphs. I'm about ready to pull my hair out here. This shouldn't be that hard. I wish I had better information. PalmRez is complaining about your font info. It might be that the 0x81 glyph is the one for the missing character. Have you read the font specification in the Palm OS SDK 5 Reference -- that might provide insight. -- Ben Combee [EMAIL PROTECTED] CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/