priiloader
priiloader copied to clipboard
Adding support accents
Hello !
Is it possible to add support accents to the function: PrintFormat() ?
Or more generally support the extended ASCII (0 => 255)
Original issue reported on code.google.com by [email protected]
on 14 Feb 2010 at 10:20
it would be possible if we edited the font files wii_font.h & wii_font_r.h
BadUncle would know more about that
Original comment by [email protected]
on 14 Feb 2010 at 11:01
- Added labels: Priority-Low, Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
Yes, that's what I thought too. But I did not know enough about programming for
the
Wii to edit these files ...
thank you again
Original comment by [email protected]
on 15 Feb 2010 at 12:18
You want to edit the color of the font? It's possible but in the past there
were
often codedumps, but i think i know why.
The font "can't" be edit to use Ascii Signs, the PrintFormat() function print
Pixel
at the screen not the hole letter.
And editing the wii_font.h to add some chars is impossible, i don't know why
but in
the german Version, i have to edit Chars to use ü, ä, ö, and thats not easy.
Original comment by [email protected]
on 15 Feb 2010 at 10:10
maybe crediar can explain more about that stuff. you should ask him on irc
(#wiidev @
efnet )
Original comment by [email protected]
on 15 Feb 2010 at 3:20
I have figure out to change the color on the fly, i don't need the hover font
(wii_font_r.h) anymore. So my Priiloader is 100kb smaller than the original.
I also can add Chars to the font, but thats difficult. Black.Pearl created a
font for
the german Version and needed a couple of weeks to make it looks clear. And i
don't
see the point of using 255 Chars. You need per Char 8*16 values (8 Pixel width,
16
Pixel height), if you put in the 255 Chars, the font is bigger than the hole
program.
U can use all this Chars from space until tilde
http://unicode.e-workers.de/ascii.php
Original comment by [email protected]
on 26 Feb 2010 at 6:41
"I have figure out to change the color on the fly, i don't need the hover font
(wii_font_r.h) anymore"
and it looks good? cause last time i tried it looked a bit pooped :/
Original comment by [email protected]
on 27 Feb 2010 at 10:39
It looks better than the previous Version. But not so clear like the original,
but
i'm on the best way to get it work. Is there a function to split a string at a
position, not at a delimiter? Like "abcdefgh" in "ab", "cd", "ef", "gh" etc.
This is my Version at the moment.
http://priiloader.baduncles.de/priiloader_mod.jpg
The pic is edit, to get is smaller, i can make a new one with a blue color and
upload
the hole pic with 5mb or/and upload the app.
Original comment by [email protected]
on 1 Mar 2010 at 8:46
hmmm, bit hard to read but i guess it looks somewhat better then before yes :)
Original comment by [email protected]
on 1 Mar 2010 at 3:38
Here is the Test dol, i have changed the Priiloader Menu only, and now tell me,
which one will changed on the fly and which one colored by the font?
It's the priiloader app Only, not the installer.
Original comment by [email protected]
on 1 Mar 2010 at 7:13
Attachments:
i dont see any difference, but why is the dol still 650KB? is the wii_font_r.h
still
included?
Original comment by [email protected]
on 1 Mar 2010 at 7:50
Yes, i want to show the differenz between original and my version.
Here is a clean non includes wii_font_r version.
Original comment by [email protected]
on 1 Mar 2010 at 10:13
Attachments:
ye that looks much better then the last one the fly changing of colour i saw :D
Original comment by [email protected]
on 2 Mar 2010 at 6:02
Why don't use printf in the fonction PrintFormat ?
Original comment by [email protected]
on 4 Jun 2010 at 5:17
cause printf looks ugly as fuck and flickers alot
that, and PrintFormat is something crediar made for preloader and i like it.
gives us
the (somewhat, if we had the headers 100% under control) freedom to make it
output
w/e we like.
only crediar knows how the headers are generated i guess
Original comment by [email protected]
on 4 Jun 2010 at 5:44
[deleted comment]
It's true.
Is it possible to use a real typeface with a library like SDL_ttf ?
Original comment by [email protected]
on 4 Jun 2010 at 6:24
probably. but personally i like to be undependable of as much as possible cause
everything has bugs :/
Original comment by [email protected]
on 4 Jun 2010 at 6:28
No, Black.Pearl and i know too, how the header are generated. But i can't find
the
right tool to do it, so i have written my own tool to transform a picture (the
picture of a painted font), the result can be see in the german version, we
have our
own Font, replace the wii_font.h, compile r89 and see the difference.
Also i have made it to draw, we are germans, ä,ö,ü.
Original comment by [email protected]
on 5 Jun 2010 at 9:54
a right totally forgot about that lol, but for that you replaced other
characters
didn't you?
Original comment by [email protected]
on 5 Jun 2010 at 11:06
In the old version. :-p
Now, our font is 3 chars bigger, i replaced characters too, but not originals or
needed chars. we can use all chars from the original and the 3 new, also we can
write
ä,ö,ü. We only need a little hack and all works perfect.
The reason for this replacment is simple, to write ä,ö,ü in original
position we have
to add 60 characters and that will be end in a BIG font.
Original comment by [email protected]
on 7 Jun 2010 at 5:59
hack? what kind of hack? o.o
and i didn't know you could add characters now :D
Original comment by [email protected]
on 7 Jun 2010 at 7:01
See this picture http://www.angelcode.com/products/bmfont/images/bmfont.png ,
the
font begins at line 3 and ends at line 8 the last gray letter. Now search the
position of ä,ö,ü.
I have put the values after "~". Modified line 113 font.cpp to use 3 more
characters
to if( c >= 0x82 || c < 0x20) // 0x20 = beginning of charset and 0x82 = end.
Then
modified
void PrintString( int col, int x, int y, char *str )
{
int i=0;
int a=0;
while(str[i]!='\0')
{
// switch positon from ä,ö,ü
if( str[i] == 0xBC )
str[i] = 0x81;
else if( str[i] == 0xB6 )
str[i] = 0x80;
else if( str[i] == 0xA4 )
str[i] = 0x7F;
// switch positon from ä,ö,ü
if( str[i] != 0xC3 )
{
if( col )
PrintCharY( x+(i-a)*6, y, str[i] );
else
PrintCharW( x+(i-a)*6, y, str[i] );
}
else
a++;
i++;
}
}
Thats all. :-p
Original comment by [email protected]
on 7 Jun 2010 at 7:14
so if i read it correctly you added ä,ö,ü at the end of the header and;
0xBC,0xB6 & 0xA4 are the hex values of chars ä,ö,ü and you link them to the
hex value
used in the font header?
if so, whats that 0xC3 doing there?
Original comment by [email protected]
on 7 Jun 2010 at 8:13
also, seeing what that bmfont program is; can't we use it to make any font for
priiloader then?
Original comment by [email protected]
on 7 Jun 2010 at 8:15
Comment24: Thats right. 0xC3 is a fix for ä,ö,ü, the console "don't like"
this
letters, so there would be print garbage after ä,ö,ü.
Comment25: No, sorry. We have tested many tools to convert a font btw. to make a
font, nothing do it right. Black.Pearl was working about 2 Month to make the
font
clear, there were often pixel that doesn't look smooth or have the wrong color.
Original comment by [email protected]
on 7 Jun 2010 at 9:37
a k np. at least you were able to add a few characters :)
Original comment by [email protected]
on 7 Jun 2010 at 11:59
Hello !
Like safirion, I would write special letters like é è à ê.
How can I do it ?
I'm French and I have not all understood :S
Thank you very much :D
Original comment by [email protected]
on 3 Jun 2011 at 10:33
Hey,
you need an image btw. the letters, 8 pixel width and 16 pixel height.
The transform this image to ycbycr, search for ycbcr. Now you have the hex
values from the lettern.
Add this to the end of the wii-font.h. Change the font.cpp on line 113 to add
one more character to
if( c >= 0x80 || c < 0x20)
Now you have to locate the position of the new letter in the charset
http://www.angelcode.com/products/bmfont/images/bmfont.png
And change the position from the letter to the one you have added, also 0x80
like this
if( str[i] == 0xBC )
str[i] = 0x80;
and the é as example will be printed.
If you dont have a good graphic designer, forget it, Black.Pearl spend more
then 3 Weeks to make an own font.
Original comment by [email protected]
on 9 Jun 2011 at 8:30
Ok thank you very much.
I'm going to test it.
When I finish to do it, I will upload ly modified wii-font.h ;)
Original comment by [email protected]
on 15 Jun 2011 at 7:15