473,239 Members | 1,847 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,239 software developers and data experts.

How do I get access to these Unicode symbols thru VB.

How can I access these unicode symbols & show them thru my application.
Thanks.

http://www.unicode.org/charts/PDF/U2200.pdf

William Cruz

*** Sent via Developersdex http://www.developersdex.com ***
Dec 27 '05 #1
9 2224
"William Cruz" <wc*****@msn.com> schrieb:
How can I access these unicode symbols & show them thru my application.
Thanks.

http://www.unicode.org/charts/PDF/U2200.pdf

You'll have to use a TrueType or OpenType font which contains glyphs for the
characters. After assigning the font to the control you can use the
characters in its caption.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 27 '05 #2
On Tue, 27 Dec 2005 06:10:50 -0800, William Cruz <wc*****@msn.com>
wrote:
How can I access these unicode symbols & show them thru my application.
Thanks.

http://www.unicode.org/charts/PDF/U2200.pdf

William Cruz

*** Sent via Developersdex http://www.developersdex.com ***


A good start would be getting a font supporting the 2200-22FF range
of Unicode characters.

A good resource would be
http://www.alanwood.net/unicode/fonts.html

or more precisely
http://www.alanwood.net/unicode/fontsbyrange.html#u2200

And some links on this page
http://www.alanwood.net/unicode/math...operators.html
"To see exactly which characters are included in a particular font,
you can use a utility such as Andrew Wests BabelMap, Bjondis
Character Agent, Apples TrueEdit, or WunderMoosens FontChecker."

When you have assigned an appropriate font containing the
required glyphs, the characters should be displayed just like any
other characters.

/JB

Dec 27 '05 #3
William,
In addition to the other comments.

Some windows applications (Word/Office 2000 & 2002) will install "Arial
Unicode MS" which contains all Unicode 2.1 glyphs:

http://www.alanwood.net/unicode/fonts.html
http://support.microsoft.com/kb/q287247/

Once you have a font with the glyphs you want.

I Normally within my code I define Char constants for the Unicode characters
I need:

Const ForAll As Char = ChrW(&H2200)
Const Complement As Char = ChrW(&H2201)
Const PartialDifferential As Char = ChrW(&H2202)

Then I can simply use the constants in my code:

Private Sub MainForm_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Const formula As String = ForAll & Complement & PartialDifferential
Label1.Text = formula
End Sub
--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"William Cruz" <wc*****@msn.com> wrote in message
news:OO*************@tk2msftngp13.phx.gbl...
| How can I access these unicode symbols & show them thru my application.
| Thanks.
|
| http://www.unicode.org/charts/PDF/U2200.pdf
|
|
|
| William Cruz
|
| *** Sent via Developersdex http://www.developersdex.com ***
Dec 28 '05 #4
On Tue, 27 Dec 2005 20:23:31 -0600, "Jay B. Harlow [MVP - Outlook]"
<Ja************@tsbradley.net> wrote:
William,
In addition to the other comments.

Some windows applications (Word/Office 2000 & 2002) will install "Arial
Unicode MS" which contains all Unicode 2.1 glyphs:


That is a 23MB OpenFont file which compresses to 15MB.
Far more glyphs than the original poster actually needed.

The font, as far as I understand it, is not redistributable either(?)

Question: What is the memory footprint of using such a font?
23MB? 23MB + the characters used during the application session?
Just the space required by the characters used during the application
session? Anybody knows or has tested this?

/JB

Dec 28 '05 #5
I copied the code you provided & I still get an empty square when I call
the characters.

William Cruz

*** Sent via Developersdex http://www.developersdex.com ***
Dec 28 '05 #6
On Wed, 28 Dec 2005 04:41:50 -0800, William Cruz <wc*****@msn.com>
wrote:
I copied the code you provided & I still get an empty square when I call
the characters.

William Cruz

*** Sent via Developersdex http://www.developersdex.com ***


Put a vertical scrollbar and a label on an empty form and paste
the following code:

---snip---
Private Sub VScrollBar1_ValueChanged(ByVal sender As Object, ByVal
e As System.EventArgs) Handles VScrollBar1.ValueChanged
Dim f As Font = New Font("Arial Unicode MS", 72)
Dim g As Graphics = Me.CreateGraphics
g.Clear(Me.BackColor)
g.DrawString(ChrW(VScrollBar1.Value), f, New
SolidBrush(Me.ForeColor), 100, 100)
f.Dispose()
g.Dispose()

Label1.Text = VScrollBar1.Value.ToString("X4")

End Sub
---snip---

The 2200-22FF (hex) range IS included in Arial Unicode MS.

This works fine for me:

---snip---
Label1.Font = New Font("Arial Unicode MS", 10)
Label1.Text = ChrW(&H2200)
---snip---

Did you forget the "&H"? 2200 (decimal) is not in the font,
but &H2200 (hex) is.

/JB


Dec 28 '05 #7
This works beautifully. Thanks :)

William Cruz

*** Sent via Developersdex http://www.developersdex.com ***
Dec 28 '05 #8
| That is a 23MB OpenFont file which compresses to 15MB.
| Far more glyphs than the original poster actually needed.
I did say "all Unicode 2.1 glyphs", if the OP is in an environment (such as
a corporation) that has Office 2000 or 2002, then I would consider the font
"usable", outside a corporate environment its probably not as usable...

| The font, as far as I understand it, is not redistributable either(?)
That's my understanding also. I use it primarily to see what the various
code points in Unicode are via the "Start - All Programs - Accessories -
System Tools - Character Map".

| Question: What is the memory footprint of using such a font?
Not sure. I would expect the font itself and/or individual glyphs to be
loaded and/or cached as a shared resource in GDI and/or GDI+ itself & not
directly impact the memory footprint of my app. However I don't know how the
GDI/GDI+ subsystem manages memory...
--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Joergen Bech @ post1.tele.dk>" <jbech<NOSPAMNOSPAM> wrote in message
news:2s********************************@4ax.com...
| On Tue, 27 Dec 2005 20:23:31 -0600, "Jay B. Harlow [MVP - Outlook]"
| <Ja************@tsbradley.net> wrote:
|
| >William,
| >In addition to the other comments.
| >
| >Some windows applications (Word/Office 2000 & 2002) will install "Arial
| >Unicode MS" which contains all Unicode 2.1 glyphs:
|
| That is a 23MB OpenFont file which compresses to 15MB.
| Far more glyphs than the original poster actually needed.
|
| The font, as far as I understand it, is not redistributable either(?)
|
| Question: What is the memory footprint of using such a font?
| 23MB? 23MB + the characters used during the application session?
| Just the space required by the characters used during the application
| session? Anybody knows or has tested this?
|
| /JB
|
|
|
Dec 28 '05 #9
On Wed, 28 Dec 2005 09:57:49 -0600, "Jay B. Harlow [MVP - Outlook]"
<Ja************@tsbradley.net> wrote:
| That is a 23MB OpenFont file which compresses to 15MB.
| Far more glyphs than the original poster actually needed.
I did say "all Unicode 2.1 glyphs", if the OP is in an environment (such as
a corporation) that has Office 2000 or 2002, then I would consider the font
"usable", outside a corporate environment its probably not as usable...
Of course. I was merely shocked to see this behemoth in my fonts
folder. None of the other fonts go above 500K.
| Question: What is the memory footprint of using such a font?
Not sure. I would expect the font itself and/or individual glyphs to be
loaded and/or cached as a shared resource in GDI and/or GDI+ itself & not
directly impact the memory footprint of my app. However I don't know how the
GDI/GDI+ subsystem manages memory...


I did some checking. Cannot find a direct link between my test program
and this font - or see that the program uses any more memory than any
other small test program. Must be cached somewhere. Ah, never mind.

What I *did* notice was that if I try to create a new font but spell
the font name wrong in the constructor (or the font is missing), I do
not get an exception or any other indication that something is wrong.
just an "MS Sans Serif" font?

Quick question: Is there a simple, one-line way of checking if a
font with a specific name (such as "Arial Unicode MS" is installed
without looping through System.Drawing.Text.InstalledFontCollection?

There is an .Exists function on that collection, but I am not sure
what to pass to it. Or if that is what I should be using.

TIA,

Joergen Bech

Dec 28 '05 #10

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

Similar topics

10
by: Noixe | last post by:
Hello, I'm italian and i not speak a good english. My problem is this: Why this istruction: print u"\u00" + str(41) generate an error and this:
4
by: gabor | last post by:
hi, today i made some tests... i tested some unicode symbols, that are above the 16bit limit (gothic:http://www.unicode.org/charts/PDF/U10330.pdf) .. i played around with iconv and so on,...
11
by: Patrick Van Esch | last post by:
Hello, I have the following problem of principle: in writing HTML pages containing ancient greek, there are two possibilities: one is to write the unicode characters directly (encoded as two...
3
by: dalei | last post by:
My question is presented more clearly in following web page: http://www.pinyinology.com/signs2.html <html> HTML entities display outside script tags: a&sup1;, a&sup2;, a&sup3;, a⁴ But...
2
by: Quimbly | last post by:
Hi, I'm just trying to do something very simple, but I can't find a simple example. In a TextBox and Button on a WinForm, I just want to display some Unicode characters -- specifically, U+2660,...
2
by: Alex Guryanow | last post by:
Hi, I have windows app written in Borland C++ Builder 5.0. Using ODBC driver windows app connects to database on linux server. Database is created with UNICODE encoding. When pg-server is...
2
by: bhreddy | last post by:
Hi All, Can someone help me out how can I resolve the error "0xC0000005: Access violation reading location 0x513112f4"? Steps I followed... 1. I ran the application at DOS prompt 2. After...
0
by: Massi | last post by:
Hi everyone, I'm trying to build (on windows environment) a grid in which every cell contains a mathematical formula, the problem is the following: when I try to put in the cells some mathematical...
0
by: s13khan | last post by:
Hi, I'm using FCKEditor for my CMS based web site thru which I save my site data in HTML format and the site is developped using ASP and MS ACCESS as backend. So far the site was of single...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.