Re: Font API
- From: "Backslash" <torifat@xxxxxxxxx>
- Date: 18 Mar 2007 08:03:54 -0700
On Mar 18, 2:42 pm, "Mark Yudkin" <DoNotContac...@xxxxxxxxxxxxxx>
wrote:
Without code, and system setup, it's impossible to do anything but a wildYep, I missed it... I'm using Windows XP SP2
guess. First off, make sure you have Windows 2000, XP or Vista (you failed
to list the OS).
Since you have Arabic and Hebrew working, but not the Indic fonts, you
should verify that you have installed the relevant support. First off note
that Hindi is a language and not a font, and that it has two distinct
writing systems. The Indic font for Hindi is Devanagan, the arabic font you
already have working according to your post.
I want to make a combo work like Microsoft Word's Complex Script Fonts
Combo (Press Ctrl+D in MS Word, If you've complex script installed in
your machine, then you can see this combo.... It works like, when you
type Hindi (In our country we use Hindi instead of Devanagari,
Devanagari is an ancient word but i had to mention it before. Sorry :
( ) this combo list contains only those fonts, who have Hindi
characters in their glyph... I think this time I make myself clear..
Start -> Control Panel -> Regional and Language Options -> Languages. MakeI
sure that both check boxes in Supplemental language support are checked.
Click advanced on Text services and input languages and make sure you've set
up Hindi and Bengali as input languages.
Start -> Control Panel -> Regional and Language Options -> Advanced.
Validate the code page conversion tables, such as 57002 and 57003 for your
case.
My Settings are ok...
If all of this is OK, post your code.
Here is my font related coding...
...................
EnumFontFamiliesEx Me.hDC, LF, AddressOf EnumFontFamProc, ByVal 0&, 0
..............
Function EnumFontFamProc(lpNLF As LOGFONT, lpNTM As NEWTEXTMETRIC,
ByVal FontType As Long, lParam As Long) As Long
Dim FaceName As String
'convert the returned string to Unicode
FaceName = StrConv(lpNLF.lfFaceName, vbUnicode)
If (lpNLF.lfPitchAndFamily = 2 And lpNLF.lfCharSet = 0) Then Call
AddItemBySort(frmMain.comFont, Left$(FaceName, InStr(FaceName,
vbNullChar) - 1))
'continue enumeration
EnumFontFamProc = 1
End Function
..............
But in this way, one or two english font(s) also appear in my list..
AddItemBySort - It is a private function for adding item to a combo
using sort
"Backslash" <tori...@xxxxxxxxx> wrote in message
news:1173893610.779635.156620@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How can I load some specific fonts, like all Bengali Fonts...
I was able to list Arabic, English, Hebrew, etc fonts but unable to
list Bengali, Hindi Fonts...
Is there any API or other techniques to list those [Bengali, Hindi]
fonts?
plzz, help me... thanX in advance....
[Sorry for my poor English]
.
- Follow-Ups:
- Re: Font API
- From: Thorsten Albers
- Re: Font API
- References:
- Font API
- From: Backslash
- Re: Font API
- From: Mark Yudkin
- Font API
- Prev by Date: Re: How can I get a Window?
- Next by Date: Re: How can I get a Window?
- Previous by thread: Re: Font API
- Next by thread: Re: Font API
- Index(es):
Relevant Pages
|