Link to home
Start Free TrialLog in
Avatar of khurshid
khurshid

asked on

Using Special fonts in VB

Can the VBasic text box object support a font that works from ritght to left like in Arabic ?

1.If so how can I  include such a font in the VBasic? What would I have to do to make such a font work in VBasic?

2. What about contextual analysis of the font? Will that be supported? If not how do I get THAT to work in VBasic?
Avatar of khurshid
khurshid

ASKER

Edited text of question
You will need to have the font installed on your computer.  
Set the RightToLeft property = True

I can't test this (so I'm leaving it as a comment) but that's pretty much the gist of it.
I think if you set the width to a negative value it reverses the text. I havnt tried this but I read it somewhere
ASKER CERTIFIED SOLUTION
Avatar of jf26028
jf26028

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To jf26028,
      What exactly do you mean by a resource file? Explain.
     
To jf26028,
      What exactly do you mean by a resource file? Explain.

To KEWL,
      It does not accept a negative value and returns an error message as soon as I press Enter after giving it a -ive value..
To clifABB,
    I'm using VB 4.0, if you are referring to setting the Right to Left  property of the textbox object, then it does not exit in the properties menu for the textbox in VB 4.0      
A resource file is a file that can contain every resource that your program uses, such as bitmaps, avis, strings, and, I think, fonts.  If you store the font in the resource file, you can refrence it instead of just the installed fonts on the machine.  Look up resource in the help file, and also in the owners area at the microsoft site, there is a resource editot upgrade that might help you.
What you wanted is to Shift the Direction From left To Rigth to Right To left

In VB5 you can set the Right To Left property to True

Also Set the font to Arabic so the text will be readable

Hope this will help u !

Want it in Runtime ?

Why i'm not getting points ? Also 'm losing some watching this answers ....


E-mail Me

edjohnson@parsmail.com