473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Font Issues

KG
I have a richtextbox that gets the selectionfont from a combo box populated
from the InstalledFontCollection.
There are a number of fonts that the richtextbox will not update to
properly.
Amongst these are:
Raavi, Shruti and Tunga.
When I set the selectionfont to any of these fonts, unless I have 1 or more
characters selected, the font change has no effect and reverts back to the
previous font as soon as I type something in.
When I select a couple of characters and set the font to any of these, they
appear the same as Arial.

When I use a fontdialog there is a "script" combo which normally lists
"western"(Arial, Times etc..) or "symbol"(Symbol, Wingdings etc..).
When I select any of the above fonts, in the combo it lists "Other" as the
script.

I would like to be able to not load these fonts into my font combo box but
can find no way to determine which fonts are which apart from hardcoding the
values to exclude.
It does not seem to be the GDICharset or the
lfCharSet from the LOGFONT structure. (which are the the same IIRC).

I also have small solution that demonstrates this behaviour if anyone is
interested.

Any help would be muchly appreciated.
Cheers
KG

Nov 16 '05 #1
1 1508
Hi KG,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you change the SeletionFont to
Raavi, Shruti or Tunga, the font will be changed back to previous font as
soon as you type something. If there is any misunderstanding, please feel
free to let me know.

I have tried it on my machine, however, I cannot reproduce it. If you have
re-set the SelectionFont of the RichTextBox without a selection, we have to
put the cursor back to the original persition before the combo box is
clicked and continue typing, or the font will not be changed. Also, as far
as I know, Raavi, Shruti and Tunga looks like Arial. You can try to check
it in Word.

HTH. If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

133
by: Philipp Lenssen | last post by:
Why is there no standardized and well-working way for a web-page to offer the font for download/embed it, in order to be displayed on the page? No matter what you think of the preferred font of a...
3
by: Barry Anderberg | last post by:
I'm using the .NET Memory Profiler by Sci Tech and I wrote a little test application to verify something odd I observed and it appears that System.Drawing.Font fails to dispose of its FontFamily. ...
3
by: Barry Anderberg | last post by:
I'm using the .NET Memory Profiler by Sci Tech and I wrote a little test application to verify something odd I observed and it appears that System.Drawing.Font fails to dispose of its FontFamily. ...
40
by: Paul Davis | last post by:
Hi all, I'm building some style sheets and trying to play the old game of balancing designer pixel perfection and still allowing users to adjust their font sizes. The compromise I've made with the...
0
by: Linda Liu[MSFT] | last post by:
Hi Al, Based on my understanding, you have an application which prints something to printers. The problem is that the font of "OCR A Extended" cannot be printed properly on some of printers. If...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.