473,659 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2225
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...@com Acast.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...@gmai l.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 objektorientier ter Datenverarbeitu ng
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...@gmai l.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 objektorientier ter Datenverarbeitu ng
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
1645
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
7582
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, I go well past the default max text length of the textbox. According to the documentation, setting MaxLength = 0 will increase this to basically the limit of available memory. So, in the form designer, I set the MaxLength property equal to 0. ...
3
3319
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 list called NAMES which will contain all C like identifiers of less than 256 characters long identified in the input file F. Each identifier will be represented by a triple (I, length, string) where I is used to identify the type of
1
4153
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 linked lists as follows: (a) A double linked list called NAMES which will contain all C like identifiers of less than 256 characters long identified in the input file F. Each identifier
11
1543
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 contains the following
6
10137
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; }; And here is my attempt at Push(), the function that adds new nodes to the list:
4
1997
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 at the most. Just curious what the best way to code this is. Should I just loop through the addresses and send one-off emails to each, or is it better to somehow send to every recipient in one shot? One thing I would like to avoid in the...
30
26496
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 Tip came from one of our own resident Experts, mshmyob. In response to a Thread relating to this very Topic, mshmyob came up with a rather ingenious method to accomplish this task. He computed the Average Character Width of a String consisting of...
0
8330
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6178
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.