reg: font support in Application

reg: font support in Application

Post by raj » Sun, 15 Jul 2001 00:42:57



I'm developing an application in eMbedded Visual C++ which
should display content in various languages.

I've been struggling with this as i've not been able to
display arabic or japanese content on the application

I later tried accessing an Arabic site but i got junk
characters there. I copied the font karabala on to my
Pocket PC..but still i'm getting junk.

In word when i try the font i'm getting some kind of
arabic content...but i don't know if it's correct...

Please somebody help me out in this regard as i've to
finish the application soon...

Thanx
raj

 
 
 

reg: font support in Application

Post by John Hass » Mon, 16 Jul 2001 09:21:45


I had success with "Arabic Web" found here
http://user.dtcc.edu/~berlin/font/arabic.htm

I copied the TTF to \Windows\Fonts on my iPAQ CE device

Then I used WinAPI functions

//Global

HFONT hRegularFont;    

 //Do this at an initialisation phase.....

                        LOGFONT lpFont;
                        lpFont.lfHeight = 15;
                        lpFont.lfWidth = 0;
                        lpFont.lfEscapement = 0;
                        lpFont.lfOrientation = 0;
                        lpFont.lfWeight = FW_NORMAL;
                        lpFont.lfItalic = FALSE;
                        lpFont.lfUnderline = FALSE;
                        lpFont.lfStrikeOut = 0;
                        lpFont.lfCharSet = ANSI_CHARSET;
                        lpFont.lfOutPrecision = OUT_DEFAULT_PRECIS;
                        lpFont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
                        lpFont.lfQuality = DEFAULT_QUALITY;
                        lpFont.lfPitchAndFamily = DEFAULT_PITCH | FF_SWISS;
                        wcscpy (lpFont.lfFaceName,_T("Arabic Web"));
                        hRegularFont = CreateFontIndirect(&lpFont);

//in the WM_PAINT section

                        SelectObject(hdc,hRegularFont);
//paint, etc. here

Note an MFC example can be found here:
http://www.microsoft.com/mobile/developer/technicalarticles/font.asp

John Hasson


> I'm developing an application in eMbedded Visual C++ which
> should display content in various languages.

> I've been struggling with this as i've not been able to
> display arabic or japanese content on the application

> I later tried accessing an Arabic site but i got junk
> characters there. I copied the font karabala on to my
> Pocket PC..but still i'm getting junk.

> In word when i try the font i'm getting some kind of
> arabic content...but i don't know if it's correct...

> Please somebody help me out in this regard as i've to
> finish the application soon...

> Thanx
> raj


 
 
 

1. Calendar Applications/Plug-ins???

Hi, Does anynody know of any good (useable) Calendar applications for the
Pocket PC (HP Jornada)?

I need something which shows that you have different types of appointments.
When looking at the monthly view, urgent appointments to be shown in red,
family engagements in blue, and others in green,... etc....

if anyone knows of any good apps i can take a look at, please let me know.

Regards.

Abu Bilaal.

2. socksserver trojan

3. Calendar Applications/Plug-ins...???

4. loading xml from a url

5. Menu add-ins for external applications

6. CVS, recursive commits, and log messages

7. How to apply a .reg registry file without a registry editor application?

8. *Help* I need to make a non-standard text file standard.

9. How to get Chinese Font support to Pocket PC 2002

10. Color Font Support in PPC 2002 Calendar

11. pocketPc browser which support fonts.

12. Fonts supported by PPC 2002