473,563 Members | 2,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Font Question

Ok here's my situation...

Creating a electronics engineering app..using DirectX for rendering as
GDI+ is just too slow for this purpose...so far, so good.

Now it just so happens that certain things...requir e an *overline* (as
in, over the letters rather than under), ie certain names for pins for
instance are normally overlined. Problem is, how do I do this? There
are no styles to specify this.

I've tried to manually do it somehow, but between all the different
justification options..plus the fact that the text can be
rotated....it's been beyond a pure nightmare. And I didn't even start
trying to do it over just individual characters yet...

Also the approach I was using drawing the line manually ended up being
so complex that I'm afraid that it'd cost me too much performance.

So what, if any, are my options here?
Thanks,

Stephan
Nov 15 '05 #1
3 1082
The simplest would be to just use a typeface that has the overline as part of
the individual characters. If you can't find a typeface that fits your
specific needs, you can always take an existing typeface and edit it w/ an
editor and add the line.

This assumes that your app defines the typeface, and doesn't allow the user to
arbitrarily specify the font.

Otherwise, you are probably going to be stuck manually drawing the line
yourself.

Stephan Rose wrote:

Ok here's my situation...

Creating a electronics engineering app..using DirectX for rendering as
GDI+ is just too slow for this purpose...so far, so good.

Now it just so happens that certain things...requir e an *overline* (as
in, over the letters rather than under), ie certain names for pins for
instance are normally overlined. Problem is, how do I do this? There
are no styles to specify this.

I've tried to manually do it somehow, but between all the different
justification options..plus the fact that the text can be
rotated....it's been beyond a pure nightmare. And I didn't even start
trying to do it over just individual characters yet...

Also the approach I was using drawing the line manually ended up being
so complex that I'm afraid that it'd cost me too much performance.

So what, if any, are my options here?

Thanks,

Stephan


--
Bret Pehrson
mailto:br**@inf owest.com
NOSPAM - Include this key in all e-mail correspondence <<38952rglkwdsl >>
Nov 15 '05 #2
AFAIR, DX doesn't have font support anyway - basically, when you draw text
on a DX surface, you are in fact using GDI. Same with shapes.
To avoid drawing extra lines and calculating positions, try obtaining a
typeface that already has glyphs with overline.

-Rob Teixeira [MVP]

"Stephan Rose" <ke**********@k ermos-no-spam-reversed.net> wrote in message
news:pc******** *************** *********@4ax.c om...
Ok here's my situation...

Creating a electronics engineering app..using DirectX for rendering as
GDI+ is just too slow for this purpose...so far, so good.

Now it just so happens that certain things...requir e an *overline* (as
in, over the letters rather than under), ie certain names for pins for
instance are normally overlined. Problem is, how do I do this? There
are no styles to specify this.

I've tried to manually do it somehow, but between all the different
justification options..plus the fact that the text can be
rotated....it's been beyond a pure nightmare. And I didn't even start
trying to do it over just individual characters yet...

Also the approach I was using drawing the line manually ended up being
so complex that I'm afraid that it'd cost me too much performance.

So what, if any, are my options here?
Thanks,

Stephan

Nov 15 '05 #3
Thanks, I ended up defining my own font that has strikethrough
redefined at overline height...

Working great at GDI+....

Fails using DirectX version....appa rently, I can get neither
strikethrough nor underline styles....*sigh *...

Stephan

On Fri, 06 Feb 2004 21:47:37 -0800, Bret Pehrson <br**@infowest. com>
wrote:
The simplest would be to just use a typeface that has the overline as part of
the individual characters. If you can't find a typeface that fits your
specific needs, you can always take an existing typeface and edit it w/ an
editor and add the line.

This assumes that your app defines the typeface, and doesn't allow the user to
arbitrarily specify the font.

Otherwise, you are probably going to be stuck manually drawing the line
yourself.

Stephan Rose wrote:

Ok here's my situation...

Creating a electronics engineering app..using DirectX for rendering as
GDI+ is just too slow for this purpose...so far, so good.

Now it just so happens that certain things...requir e an *overline* (as
in, over the letters rather than under), ie certain names for pins for
instance are normally overlined. Problem is, how do I do this? There
are no styles to specify this.

I've tried to manually do it somehow, but between all the different
justification options..plus the fact that the text can be
rotated....it's been beyond a pure nightmare. And I didn't even start
trying to do it over just individual characters yet...

Also the approach I was using drawing the line manually ended up being
so complex that I'm afraid that it'd cost me too much performance.

So what, if any, are my options here?

Thanks,

Stephan


Nov 15 '05 #4

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

Similar topics

22
7599
by: Martin Ernst | last post by:
Hello! I wonder which font is normally used in IE (6) for windows if i use "sans-serif" as font-family. Does anybody know it? Thanks Martin
133
6481
by: Philipp Lenssen | last post by:
Why is there no standardized and well-working way for a web-page to offer the font for download/embed it, in order to be displayed on the page? No matter what you think of the preferred font of a designer, many web-sites offer an image of the text instead to "force" this font -- which certainly can't be the solution (it's a bit of a hassle to...
131
21568
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately get some good real world examples. Fire away! :) Regards, Peter Foti
4
16669
by: Csaba Gabor | last post by:
What I'd like to do is to be able to set the font of a textarea element to the same font that another element is using (say, for example, an <INPUT type=text ...> element, but if that's a no go, then a generic element's font will do OK, too. What's the correct way to do this, please (so that it will also work for IE 6)? The motivation for...
10
4036
by: Richard R Plourde | last post by:
I've got a problem that IE doesn't seem to use the entire font unicode subgroups from a hinted font file. When I display the following web page in IE 6 as opposed to Firefox 1.0 PR. Check out the web page in question... http://clientserver.home.comcast.net/unicode.html If you examine, for a few examples, characters such as square root...
9
3759
by: Dr John Stockton | last post by:
Assuming default set-ups and considering all reasonable browsers, whatever that may mean, what should an author expect that his readers in general will see (with visual browsers) for a page with body like <br><br> Abc <font size=+1> Abc <font size=+1> Abc <font size=+1> Abc <font size=+1> Abc <font size=+1>
9
19509
by: Adam | last post by:
Can someone please help!! I am trying to figure out what a font is? Assume I am working with a fixed font say Courier 10 point font Question 1: What does this mean 10 point font Question 2: How do I determine how many characters I can get on a line Question 3: How do I determine how many lines I can get on a page. Assume no margins...
0
3035
by: Chenghui Li | last post by:
We have a problem with the Windows XP theme: We have a IDE which allows other developers to develop visual programs for their customers. Our IDE allow them to set font for window captions easyly (through a dialog). It works fine fo W98, 2000, NT, and XP is the theme is Classic. But on XP if the theme is "Windows XP", the we have a problem: if...
71
5745
by: Mark | last post by:
Sorry if the question is a bit basic. I generally express my font sizes in pixels, originally to handle the Macintosh/Windows font size differences (though I believe that they both now treat points the same way, at least within the browser window). It has been suggested that one should use ems to allow browsers to increase or decrease the...
14
2811
by: Roedy Green | last post by:
Is there a shortcut way to define the default font family (and characteristics) to be applied to all styles? -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com
0
7659
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7882
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. ...
1
7634
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...
0
7945
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...
0
6244
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5481
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...
0
5208
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...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.