This project has moved. For the latest updates, please go here.

Special Char in mainTable

Jan 30, 2015 at 5:03 PM
Edited Jan 30, 2015 at 5:04 PM
How can i encode special char in mainTable??

I've a column like this:
            columns.AddColumn(column =>{
                column.PropertyName<LPRow>(x => x.Description);
If "Description" contain a special char like "°" it show me "?"...

How can i solve this?
Jan 30, 2015 at 5:16 PM
Edited Jan 30, 2015 at 5:19 PM
PDFReport supports Unicode characters by default.
Here you can define 2 fonts. The 1st font is the main font and the second one, is the fallback font (If the required glyph is not present in the first font, the second font will be used automatically).
.DefaultFonts(fonts =>
     fonts.Path(System.IO.Path.Combine(AppPath.ApplicationPath, "fonts\\tahoma.ttf"),
      System.IO.Path.Combine(Environment.GetEnvironmentVariable("SystemRoot"), "fonts\\verdana.ttf"));
So check out your fonts, to make sure they have that special glyph. At least one of them should support that glyph.
Jan 31, 2015 at 8:30 AM
I've tried Arial.ttf, times.ttf, verdana.ttf, tahoma.ttf and i'm sure that all of this fonts support ° char...

With someone it print ? and with some other it print blank space...

There is some other thing that can i try?
Jan 31, 2015 at 8:55 AM