[Mono-list] Monio Bets1 Testing on Mandrake 9.2

Tracy Barlow tracy@aic.net.au
Sun, 23 May 2004 22:40:34 +1000


The following piece of code is from the example website it posted 
recently, it was running under Mono 0.31. The following code worked as 
expected when compiled and run under Mono 0.31. Now when my app calls 
this code under Mono 0.91 it fails with the following error message 
"Load Data -200452322287664: Encoding name `windows-1252' not supported 
- Initialise Fonts  - Build PDF  - Build Resume  - myResume"

       private static Font[] initialiseFonts()
       {
           try
           {
               Font[] fonts = new Font[18];
               fonts[0] = FontFactory.getFont(FontFactory.HELVETICA, 10, 
Font.NORMAL);
               fonts[1] = FontFactory.getFont(FontFactory.HELVETICA, 10, 
Font.BOLD);
               fonts[2] = FontFactory.getFont(FontFactory.HELVETICA, 10, 
Font.BOLD | Font.UNDERLINE);
               fonts[3] = FontFactory.getFont(FontFactory.HELVETICA, 10, 
Font.BOLD | Font.ITALIC);
               fonts[4] = FontFactory.getFont(FontFactory.HELVETICA, 12, 
Font.NORMAL);
               fonts[5] = FontFactory.getFont(FontFactory.HELVETICA, 12, 
Font.BOLD);
               fonts[6] = FontFactory.getFont(FontFactory.HELVETICA, 12, 
Font.BOLD | Font.UNDERLINE);
               fonts[7] = FontFactory.getFont(FontFactory.HELVETICA, 12, 
Font.BOLD | Font.ITALIC);
               fonts[8] = 
FontFactory.getFont(FontFactory.TIMES_NEW_ROMAN, 12, Font.NORMAL);
               fonts[9] = 
FontFactory.getFont(FontFactory.TIMES_NEW_ROMAN, 12, Font.BOLD);
               fonts[10] = 
FontFactory.getFont(FontFactory.TIMES_NEW_ROMAN, 12, Font.ITALIC);
               fonts[11] = 
FontFactory.getFont(FontFactory.TIMES_NEW_ROMAN, 12, Font.BOLD | 
Font.ITALIC);
               fonts[12] = FontFactory.getFont(FontFactory.SYMBOL, 12, 
Font.NORMAL);
               fonts[13] = FontFactory.getFont(FontFactory.ZAPFDINGBATS, 
12, Font.NORMAL);
               fonts[14] = FontFactory.getFont(FontFactory.HELVETICA, 
18, Font.NORMAL);
               fonts[15] = FontFactory.getFont(FontFactory.HELVETICA, 
18, Font.BOLD);
               fonts[16] = FontFactory.getFont(FontFactory.HELVETICA, 
18, Font.ITALIC);
               fonts[17] = FontFactory.getFont(FontFactory.HELVETICA, 
18, Font.BOLD | Font.ITALIC);
               return fonts;
           }
           catch(Exception ex)
           {
               throw (new Exception(ex.Message + " - Initialise Fonts "));
           }
       }

-- 
Regards

Tracy Barlow

TracyAnne Software

Phone      07 4124 5092
Mobile     0416 00 38 61
Email      tracy@aic.net.au
Web        www.tracyannesoftware.com/