migueltk's picture

QuickFont v1.0.0 to .net 2.0

I have ported the code to. Net 2.0 and I have removed many blank lines. I also added some characters needed for Spanish. QuickFont v1.0.0 to .net 2


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
james_lohr's picture

>>I have ported the code to. Net 2.0
Thank you, but I have already done this (yesterday!) and released it (v1.0.1). Although I realise I was linking to the wrong release from the project page, which is perhaps why you didn't spot it.

>> I also added some characters needed for Spanish.
The character set is already configurable:

            var myFontConfig = new QFontBuilderConfiguration();
            myFontConfig.charSet += "þÛð";
            var myFont = new QFont("someFont.ttf", 14, myFontConfig);

I'd prefer, by default, to use the usual English character set for the sake of not wasting video memory on a larger texture; however, if you let me know what characters are necessary for Spanish, then I can add a helper method. Perhaps it might look something like:

            var myFontConfig = new QFontBuilderConfiguration();
            myFontConfig.charSet = QFont.Locale.Spanish;
            var myFont = new QFont("someFont.ttf", 14, myFontConfig);

Thanks for pointing this out.

Regards,

James L.

migueltk's picture

True, I have not seen the port QuickFont version 1.0.1 this morning. I've done the work for nothing.Thank you for this great library!.

Any solution for localized characters seem right.

Greetings ...

Miguel