473,499 Members | 1,909 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...require 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 1080
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...require 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**@infowest.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**********@kermos-no-spam-reversed.net> wrote in message
news:pc********************************@4ax.com...
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...require 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....apparently, 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...require 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
7591
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
6444
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...
131
21531
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...
4
16659
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,...
10
4027
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...
9
3754
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...
9
19484
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:...
0
3028
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...
71
5709
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...
14
2800
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
7007
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...
0
7220
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...
1
6894
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...
0
5470
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,...
0
4600
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...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
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 ...
0
297
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...

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.