Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Font change

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-29-2007, 12:37 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default Font change

I am trying to add japanese language to my Expense Tracker program, alfcen kindly sent me the text file translated to japanese and I am trying to display the japanese characters.
I also got the italian translation from filippo, but this one was easy to add.

My problem is that I need to change the font to MS Gothic to display the japanese characters.
I can do it on all labels and controls I have control on, but with system controls, like the MsgBox, I ditn't find how to do it, neither if it is possible.
Does there exit a function that allows to change the font of the device and of the desktop emulator that automatically changes the font of everything.

I have added a screenshot to show the somewhat exotic signs to us westerners. The visible text below the MsgBox is supposed to say 'Load last file at start-up, otherwise default file'.

Thank's in advance.

Klaus
Switzerland
Attached Images
File Type: jpg Japanese Setup.jpg (14.7 KB, 30 views)
Reply With Quote
  #2 (permalink)  
Old 12-29-2007, 01:49 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,732
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I think that the system fonts are declared somewhere in the registry.
Reply With Quote
  #3 (permalink)  
Old 12-30-2007, 12:44 PM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello Klaus,

System Font is specified here:
HKEY_LOCAL_MACHINE\System\GDI\SYSFNT

Users with Japanese o/s will see the message box correctly, I have tested it.

When it comes to system messages, the resident o/s overrides the Japanese
character codes, and hits the wrong code because the table of charcaters is
much larger for Japanese, finally showing nothing but squares.
Likewise, your French o/s overrides Japanese for Hai and Iie with Oui and No
using Tahoma font.

You could try and set MS Gothic in the above registry. Even if it works, you
will need to set Tahoma again to return to French.

It is reasonable to assume that European language users would not install
that large MS Gothic font for a short exotic experience, while Japanese users
have it in ROM anyway.

The labels look fine
Reply With Quote
  #4 (permalink)  
Old 12-30-2007, 01:42 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hello Robert
I agree with you that European users would perhaps just try it once for fun.
But if there would have been a simple way to do it why not.

What happens on your computer and device, when you change to Japanese are the labels directly in Japanese or do you have to change something. I think that MS Gothic ore a similar sign set is default and not Tohama.

I will leave the japanese text file with the system and depending on your answer, I will change the labels or leave them as they are. I have for the moment changed just a few ones.

Thank's for the testing and Best regards.

Klaus
Reply With Quote
  #5 (permalink)  
Old 12-30-2007, 01:43 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

and don't even try to do it in Hebrew
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #6 (permalink)  
Old 12-30-2007, 02:11 PM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello Klaus,
Both my desktop and device are native Japanese, in that there is nothing
I need to adjust.
I humbly recommend to leave the option for those with Japanese o/s and
offer you my services as translater and tester. An option for Japanese
looks impressive in any case
Reply With Quote
  #7 (permalink)  
Old 12-30-2007, 06:00 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hello Robert
Thank you for your reply, I will join the Japanese file with the system without changing the font of the labels. That's the best way not to have any bad surprise and I wouldn't play with the registry.
Nochmals vielen Dank für Alles.

Hello derez
If I understood you well it seems also beeing a mess ?
But if you would like to make a translation in Hebrew dont hesitate, it's quite easy for me to add the possibility of another language in the program. The only thing that's needed is the translation of a text file and add a radio button in the program.
I am thinking about the Icon Editor I am writing these days which could be intersting for more people. But anyway it's up to you.
You can find the files in the Expesne Tracker thread. For the Icon Editor it's still a bit too early, there is still a lot to do and to test, and I also have new ideas I want to implement.

Best regards and a Happy New Year.

Klaus
Switzerland
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Problem ?? nm7s9 Questions (Windows Mobile) 6 08-08-2008 11:00 AM
different Font at .drawstring MM2forever Questions (Windows Mobile) 3 06-30-2008 05:45 PM
can i change font ? gjoisa Questions (Windows Mobile) 1 03-29-2008 09:58 AM
Font Change Stanl3yCZ Questions (Windows Mobile) 2 01-27-2008 06:22 PM
Size of font on PDA BjornF Basic4ppc Wishlist 3 05-10-2007 03:37 PM


All times are GMT. The time now is 06:20 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0