473,408 Members | 2,839 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,408 software developers and data experts.

list all characters available

Hi
I'm trying to write an app and don't know how to start.
I'll have a selector with a list of true type fonts.
Each font will represent a different set of chars. Example
*arial-font
*arabic-font
*russian-font
*cyrillic-font

When the user select one of them, I should list all chars available in
the font.

With ansi characterset it's easy, just loop from 0-255 and print the
char representation of an integer value, but I don't know how to
achieve this.

Any idea?
Apr 10 '08 #1
7 2211
clinisbut wrote:
Hi
I'm trying to write an app and don't know how to start.
I'll have a selector with a list of true type fonts.
Each font will represent a different set of chars. Example
*arial-font
*arabic-font
*russian-font
*cyrillic-font

When the user select one of them, I should list all chars available in
the font.

With ansi characterset it's easy, just loop from 0-255 and print the
char representation of an integer value, but I don't know how to
achieve this.

Any idea?
Sorry, True-Type fonts are off-topic. You need to ask in the newsgroup
that deals with them, most likely your platform newsgroup, where the
API for working with fonts is available.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 10 '08 #2
On Apr 10, 2:00*pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
clinisbut wrote:
Hi
I'm trying to write an app and don't know how to start.
I'll have a selector with a list of true type fonts.
Each font will represent a different set of chars. Example
*arial-font
*arabic-font
*russian-font
*cyrillic-font
When the user select one of them, I should list all chars available in
the font.
With ansi characterset it's easy, just loop from 0-255 and print the
char representation of an integer value, but I don't know how to
achieve this.
Any idea?

Sorry, True-Type fonts are off-topic. *You need to ask in the newsgroup
that deals with them, most likely your platform newsgroup, where the
API for working with fonts is available.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
oops, sorry!
Apr 10 '08 #3
On Apr 10, 1:30 pm, clinisbut <clinis...@gmail.comwrote:
I'm trying to write an app and don't know how to start.
I'll have a selector with a list of true type fonts.
Each font will represent a different set of chars. Example
*arial-font
*arabic-font
*russian-font
*cyrillic-font
When the user select one of them, I should list all chars
available in the font.
With ansi characterset it's easy, just loop from 0-255 and
print the char representation of an integer value, but I don't
know how to achieve this.
How to achieve what? As Victor has pointed out, anything to do
directly with fonts is platform dependent, and you'll have to
ask specifically in a newsgroup for that platform. This
includes the question of how the font is encoded (ISO 8859-n,
JIS, various Unicode formats, etc.). After that, it's just a
simple for loop from the smallest encoding to the largest,
skipping illegal encodings, and probably non-printable
characters. Except, of course, that the number of characters
can be quite large: Unicode defines over a million, and I think
most far eastern encodings (e.g. JIS) will have tens of
thousands. So I'm not sure how you're going to list them all.

And while I'm at it: with ASCII (not ANSI) characters, the range
is 0-127, not 0-255, and characters in the range 0-31,127 are
control characters, with no printable representation (and which,
depending on the display device, may cause some other behavior).
Also: Arial is a font, but Arabic, Russian and Cyrillic aren't.
Arabic and Cyrillic are alphabets, and Arabic and Russian are
languages (and Russian is a nationality, and ...). I think you
probably need to learn a bit more about the domain first, before
you start even thinking about how to program the problem.

Although it may be more than you need, the absolute reference
here is, I think, "Fonts and Encodings", by Yannis Haralambous,
O'Reilly, ISBN 0-596-10242-9 (or 2-84177-273-X for the original
French). At the very least, skim over the introduction, and
read the first chapter (which deals with the numerous
pre-Unicode font encodings). (On the Web, Roman Czyborra has
one of the most informative sites I've seen, but I often have
problems accessing it.)

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Apr 11 '08 #4
And while I'm at it: with ASCII (not ANSI) characters, the range
is 0-127, not 0-255, and characters in the range 0-31,127 are
control characters, with no printable representation (and which,
depending on the display device, may cause some other behavior).
Yeah, that's my mistake

Also: Arial is a font, but Arabic, Russian and Cyrillic aren't.
Arabic and Cyrillic are alphabets, and Arabic and Russian are
languages (and Russian is a nationality, and ...). *
I know that arabic, cyrillic are alphabets, I just mean arabic and
cyrillic fonts.

I think you
probably need to learn a bit more about the domain first, before
you start even thinking about how to program the problem.
Maybe my bad english didn't expose clearly my problem.
I didn't realize that this topic it's more OS dependant than I though,
so I say sorry again.

Apr 11 '08 #5
On Apr 10, 1:30 pm, clinisbut <clinis...@gmail.comwrote:
I'm trying to write an app and don't know how to start.
I'll have a selector with a list of true type fonts.
Each font will represent a different set of chars. Example
*arial-font
*arabic-font
*russian-font
*cyrillic-font
When the user select one of them, I should list all chars
available in the font.
With ansi characterset it's easy, just loop from 0-255 and
print the char representation of an integer value, but I don't
know how to achieve this.
How to achieve what? As Victor has pointed out, anything to do
directly with fonts is platform dependent, and you'll have to
ask specifically in a newsgroup for that platform. This
includes the question of how the font is encoded (ISO 8859-n,
JIS, various Unicode formats, etc.). After that, it's just a
simple for loop from the smallest encoding to the largest,
skipping illegal encodings, and probably non-printable
characters. Except, of course, that the number of characters
can be quite large: Unicode defines over a million, and I think
most far eastern encodings (e.g. JIS) will have tens of
thousands. So I'm not sure how you're going to list them all.

And while I'm at it: with ASCII (not ANSI) characters, the range
is 0-127, not 0-255, and characters in the range 0-31,127 are
control characters, with no printable representation (and which,
depending on the display device, may cause some other behavior).
Also: Arial is a font, but Arabic, Russian and Cyrillic aren't.
Arabic and Cyrillic are alphabets, and Arabic and Russian are
languages (and Russian is a nationality, and ...). I think you
probably need to learn a bit more about the domain first, before
you start even thinking about how to program the problem.

Although it may be more than you need, the absolute reference
here is, I think, "Fonts and Encodings", by Yannis Haralambous,
O'Reilly, ISBN 0-596-10242-9 (or 2-84177-273-X for the original
French). At the very least, skim over the introduction, and
read the first chapter (which deals with the numerous
pre-Unicode font encodings). (On the Web, Roman Czyborra has
one of the most informative sites I've seen, but I often have
problems accessing it.)

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Jun 27 '08 #6
And while I'm at it: with ASCII (not ANSI) characters, the range
is 0-127, not 0-255, and characters in the range 0-31,127 are
control characters, with no printable representation (and which,
depending on the display device, may cause some other behavior).
Yeah, that's my mistake

Also: Arial is a font, but Arabic, Russian and Cyrillic aren't.
Arabic and Cyrillic are alphabets, and Arabic and Russian are
languages (and Russian is a nationality, and ...). *
I know that arabic, cyrillic are alphabets, I just mean arabic and
cyrillic fonts.

I think you
probably need to learn a bit more about the domain first, before
you start even thinking about how to program the problem.
Maybe my bad english didn't expose clearly my problem.
I didn't realize that this topic it's more OS dependant than I though,
so I say sorry again.

Jun 27 '08 #7
On Thu, 10 Apr 2008 04:30:47 -0700, clinisbut wrote:
Hi
I'm trying to write an app and don't know how to start. I'll have a
selector with a list of true type fonts. Each font will represent a
different set of chars. Example *arial-font
*arabic-font
*russian-font
*cyrillic-font

When the user select one of them, I should list all chars available in
the font.

With ansi characterset it's easy, just loop from 0-255 and print the
char representation of an integer value, but I don't know how to achieve
this.

Any idea?
www.pango.org

--
OU
Jun 27 '08 #8

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

Similar topics

7
by: David. E. Goble | last post by:
Hi all; I need to build a list of strings in one function and use the list in another function. ie buildlist(char list, FILE **infile); { int i;
14
by: Adam Clauss | last post by:
I've an application which is using a multiline textbox to log the status of a fairly long procedure. "Updates" are made to the status by calling textbox.AppendText. As my task is fairly lengthy,...
3
by: Little | last post by:
Could someone help me get started on this program or where to look to get information, I am not sure how to put things together. 1. Create 4 double linked lists as follows: (a) A double linked...
1
by: Little | last post by:
Could someone help me figure out how to put my project together. I can't get my mind wrapped around the creation of the 4 double Linked Lists. Thank your for your insight. 1. Create 4 double...
11
by: placid | last post by:
Hi all, I have two lists that contain strings in the form string + number for example the second list contains strings that are identical to the first list, so lets say the second list...
6
by: Jim Showalter | last post by:
I'm trying to write code that gets fixed-length strings from the user and then stores them in a linked list. Here's the definition of my list node: struct node {char str; struct node* next; };...
4
by: chris | last post by:
I need to maintain a list of subscribers to an email list for a "newsletter" that will be sent via a web form probably once a month. I anticipate low numbers--tens to maybe one hundred subscribers...
30
ADezii
by: ADezii | last post by:
This week’s Tip of the Week will clearly demonstrate how you can dynamically set the Drop Down List Width of a Combo Box to the length of the longest item in its Row Source. The inspiration for this...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...

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.