Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / July 2006

Tip: Looking for answers? Try searching our database.

Asian Fonts

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lakshmi - 26 Jul 2006 12:08 GMT
hi,
I have a iPAQ Model ID: hpiPAQ hw6510a, OS Version 4.21 .... Is it
possible to load Asian Fonts(Japanese, Chinese, Korean) in it ?
I'm working on an PocketPC appplication in Vb.Net and we need to allow
the
user to view text in the following Asian languages(japanese, Chinese,
Korean).
I tried downloading a few fonts but it didnt work.
Any help on this one?

Many Thanks,
Fabien - 26 Jul 2006 14:31 GMT
Hi,

Try to copy a font file (SImSun.ttc for chineese) in WIndows\Font.
Or import and call the WINCE API function AddFontResource.

BR

Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/

lakshmi a écrit :

> hi,
>  I have a iPAQ Model ID: hpiPAQ hw6510a, OS Version 4.21 .... Is it
[quoted text clipped - 7 lines]
>
> Many Thanks,
lakshmi - 28 Jul 2006 13:04 GMT
Hi,
Thanks for the inputs regarding the Asian fonts.

1)    I tried downloading the font SImSun.ttc and I copied it on my device
to the folder Windows/Fonts. But when I opened the Chinese text file
the characters did not show up in Chinese.
2)    Then I tried using the function AddFontResource in my application to
include the font.
  Dim a As Integer = AddFontResource("\Windows\Fonts\SImSun.ttc")
Label1.Font = New System.Drawing.Font(a, 8.0, FontStyle.Regular)

Actually, I want the text to show up in Chinese on the control Label1.
It still didn't work.... Now I guess I ve not used the function
AddFontResource in the correct way.
How to use this function AddFontResource? Thereafter, Is it required to
bind the control to this font ? If so how is it done?
You have also mentioned that I need to "import" and then call this
function. How is that done?
I really appreciate your help
Many Thanks,

> Hi,
>
[quoted text clipped - 8 lines]
> ADENEO (ADESET)
> http://www.adeneo.adetelgroup.com/
Paul G. Tobey [eMVP] - 28 Jul 2006 17:53 GMT
The program is responsible for *choosing* a font to display text.  No
application that I've ever seen chooses a font based on what kind of text is
in its document file, but the edit control certainly does not scan the text
and pick a font based on what's there!  The font is available, so, if you
use that font to display the text, presumably it will appear correctly.
Assigning a font to the Label1.Font member is the right thing to do.

To see the documentation on AddFontResource, install the SDK for native code
development on Pocket PC or something like that.  The parameter is the path
to the font file.  The return value is the number of fonts added.  Since
you've copied the font to the \Windows\Fonts folder, I don't think that you
need to call AddFontResource, anyway.  It's used to register a new font file
for the system.  Once it's done, the font name found inside that font file
should work when calling the Font( string, ... ) version of the Font
constructor.

Paul T.

> Hi,
> Thanks for the inputs regarding the Asian fonts.
[quoted text clipped - 29 lines]
>> ADENEO (ADESET)
>> http://www.adeneo.adetelgroup.com/

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.