473,443 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

international font selection

I'm writing a Windows Forms application in C# which will run generally in a
Western environment; e.g., EN-US. I need to access a unicode font on the
user's system which is capable of displaying Japanese characters - often
there will be one or more of such fonts, but I don't know which ones by
name. If one does not exist, I need to default to a public domain font to be
included with the app.

How do I determine which fonts are available on the user's system, and if
they have the required characters? I could come up with a short list of
probable font name candidates, but is there a better way?

If there are any references to URLs which have discussed this, that would be
fine!

Thanks,

- Jim
Nov 13 '05 #1
2 3945
To determine which fonts are available, you can instantiate an
InstalledFontCollection object and then read its Families property.
This will give you an array of FontFamily objects, and FontFamily.Name
gives you the font name.

I'm not sure how to detect which characters are available in a font,
though. I'd be surprised if there wasn't a way to do it, but I didn't
see it in a quick skim through the docs.
Jim Puls wrote:
I'm writing a Windows Forms application in C# which will run generally in a
Western environment; e.g., EN-US. I need to access a unicode font on the
user's system which is capable of displaying Japanese characters - often
there will be one or more of such fonts, but I don't know which ones by
name. If one does not exist, I need to default to a public domain font to be
included with the app.

How do I determine which fonts are available on the user's system, and if
they have the required characters? I could come up with a short list of
probable font name candidates, but is there a better way?

If there are any references to URLs which have discussed this, that would be
fine!

Thanks,

- Jim


Nov 13 '05 #2
Looking specifically for Japanese, you can base it on a font charset value
of 128?
--
MichKa [MS]

This posting is provided "AS IS" with
no warranties, and confers no rights.
"Joe White" <ip***@hotmail.com> wrote in message
news:3F**************@hotmail.com...
To determine which fonts are available, you can instantiate an
InstalledFontCollection object and then read its Families property.
This will give you an array of FontFamily objects, and FontFamily.Name
gives you the font name.

I'm not sure how to detect which characters are available in a font,
though. I'd be surprised if there wasn't a way to do it, but I didn't
see it in a quick skim through the docs.
Jim Puls wrote:
I'm writing a Windows Forms application in C# which will run generally in a Western environment; e.g., EN-US. I need to access a unicode font on the
user's system which is capable of displaying Japanese characters - often
there will be one or more of such fonts, but I don't know which ones by
name. If one does not exist, I need to default to a public domain font to be included with the app.

How do I determine which fonts are available on the user's system, and if they have the required characters? I could come up with a short list of
probable font name candidates, but is there a better way?

If there are any references to URLs which have discussed this, that would be fine!

Thanks,

- Jim

Nov 13 '05 #3

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

Similar topics

3
by: Jim Puls | last post by:
I'm writing a Windows Forms application in C# which will run generally in a Western environment; e.g., EN-US. I need to access a unicode font on the user's system which is capable of displaying...
4
by: Michel Joly de Lotbiniere | last post by:
I hope this is the correct newsgroup for this subject. The other day I came across a site www.safesquid.com that specified font-family:Terminal font-size:9pt in the inline css for command-line...
2
by: MLH | last post by:
This is NOT of paramount importance. I'm sure there are others whose questions are mission critical. Mine is not. I have always wanted a report that looked like this... Here is some sample...
1
by: Joerg | last post by:
I am in the process of creating an international GUI application with C# on ..NET1.1 (Win2k), which is supposed to implement a particular look/design. In order to achieve this, I plan amongst...
2
by: Michael A. Covington | last post by:
When you change the Font property of a RichTextBox, does it change the font of all the contents, or only the text subsequently added, or only the selection, or what?
2
by: Hariharan S | last post by:
Hi Guys, Have an issue with the Font object. I have a text box in which I can enter text and I have included a small button which upon selection, should enable me to change the newly entered...
1
by: | last post by:
Is there any way i can disable Font Style and Size Section that comes on Font Dialog Box.
2
by: Stuart Norris | last post by:
Dear Group, I am new to c# and windows form designer - coming from a Motif background. I am attempting to develop an application for a touch screen and I need to have a menu system with a...
4
by: H-S | last post by:
Please help. This is a real puzzler! Originally posted on microsoft.public.dotnet.framework.windowsforms but no answer found! I have a read-only textBox which shows the results of a selection...
1
by: hmkaddoura | last post by:
Hi All, Am trying to change the MS word font in my vb.net application by using the following code Dim sizo As Single = 14 ......
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.