Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Greek/Roman/Math/Science/Statistical Fonts 2

Status
Not open for further replies.

mccartmd

Programmer
Feb 3, 2003
63
US
Hi, just viewed Thread 184-123416 from 2005 from JimStarr with Mikelewis, Geoff etc responses and discussion, good stuff! What I am trying to do is see if I can use Greek/Roman/Math/Science/Statistical fonts as labels on a form. Jimstarr's Alt+number functionality works good.
Can you point me in the direction of being able to use the
"Greek/Roman/Math/Science/Statistical" fonts for my labels.
Appreicate any help, THX Michael
 
Set the label's Fontname to such a font and use that ALT+number functionality while editing the caption property in the Properies window. What you see in the Pproperties window will still be Arial, but the Label should display correctly.

I just tried so with the Wingdings font and a caption "abcdefg", and while it's still abcdefg in the Properties window (because it uses some text font for _all_ properties), the form label shows the Wingdings symbols. Ther's no big secret to it, just don't expect the proerties windows to use the font you set for displaying the caption property, it's the form that matter's isn't it?

Bye, Olaf.
 
Hey Olaf and Mike, you guys are good!!!
How can I get a list so I can print it out of what to use.
looking for "Sum of" which kinda looks like an "E",
or "Mean" which is an x with a Bar on top. .
or a Greek mew, mu or sigma, squared super or sub scripted etc. . .get the idea?
Thx Michael
 
Michael,

There are several ways of doing that. One the comes to mind is as follows:

Code:
CREATE TABLE Chars (NumberVal I, CharVal C(1))
FOR x = 33 TO 254
  INSERT INTO Chars (NumberVal, CharVal) ;
    VALUES (x, CHR(x))
ENDFOR

Then either:

- Create a report with three columns, such that the first column contains the numbers in NumberVal, and both the second and third contains the characters in CharVal. (Cols 2 and 3 will be identical at this point). Then, format col. 3 in Symbol, or whatever other font you want to examine).

- Or, open the table in Excel. Copy the second column to the third column, and format the third column in the font of interest.

Either way, you'll end up with a chart showing, for each character in the printable ASCII range: the numberic value, the "normal" character, and the symbol.

Give it a try.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Greek letters are simply mapped to the latin alphabet, a=alpha, b=beta etc. in the symbol font. The "Sum of" sign is a big Signum and should be S there.

For other things Windows has a System utility called charmap.exe, which will show you what's in each font. You can copy a selected symbol and paste it in foxpro. Some characters are in superscript or subscript position within the fonts, mostly you will need additional labels in a smaller fontsize positioned accordingly to have that super-/subpositioning effect.

So if your main goal is to display mathematical functions etc. in labels, you better not do that with labels, if it's about more than just a few formulas. Make that formula in Word or another tool and use an image.

If you program a generator, I'd even more suggest to make use of images, only you create them interactively with GDIPlusX from VFPX in Codeplex.com. You can set font, fontsize and drawtext, then change size, position to draw sub/superscript etc. and finally display all that as an image.

Bye, Olaf.
 
Hi
I used a small program provided with Office 97 (I think...) called MathType. Now they sell it a stand-alone apps


Cheap but very powerfull. I used to white chemical formula, with sub-script, super-script, sigma and all these greek letters.

Bye

Nro
 
"How can I get a list so I can print it out of what to use"

Windows already has a font viewing tool.

%SystemRoot%\System32\charmap.exe

With it you can see all of the fonts that you have installed on your workstation.

Good Luck





 
You can also simply open the font in its own viewing window. Go to Windows\Fonts, and double-click on the relevant TTF file. This also allows you to print the font. Unlike the other suggestions, it doesn't show a mapping of the characters against their ASCII or key codes, but it's a good way of getting a sample of what the font looks like.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top