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

PrivateFontCollection vs TextBox

Hi all.

I'm messing a bit with PrivateFontCollection. Embedding a
ttf-font and
streaming it into PrivateFontCollection using
AddMemoryFont works like a
charm.

Changing the Font property on the WinForm controls works
without problems
on Label, CheckBox and Buttons. But surprisingly not on
TextBoxes, which
reduces the scope of PrivateFontCollection enormously.

Is this a known bug or by design? Has anyone else got it
to work?

Cheers
/Claus
Nov 16 '05 #1
2 3673
I think this is definitely a bug or an unimplemented feature. Fonts in a
private font collection seem to work fine on labels but not textboxes.
--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Claus" <ab*@hotmail.com> wrote in message
news:4a****************************@phx.gbl...
Hi all.

I'm messing a bit with PrivateFontCollection. Embedding a
ttf-font and
streaming it into PrivateFontCollection using
AddMemoryFont works like a
charm.

Changing the Font property on the WinForm controls works
without problems
on Label, CheckBox and Buttons. But surprisingly not on
TextBoxes, which
reduces the scope of PrivateFontCollection enormously.

Is this a known bug or by design? Has anyone else got it
to work?

Cheers
/Claus

Nov 16 '05 #2
Thanks

Thats what I thought, too bad I just wasted 2 days with
this :)
-----Original Message-----
I think this is definitely a bug or an unimplemented feature. Fonts in aprivate font collection seem to work fine on labels but not textboxes.--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Trickshttp://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.


"Claus" <ab*@hotmail.com> wrote in message
news:4a****************************@phx.gbl...
Hi all.

I'm messing a bit with PrivateFontCollection. Embedding a ttf-font and
streaming it into PrivateFontCollection using
AddMemoryFont works like a
charm.

Changing the Font property on the WinForm controls works
without problems
on Label, CheckBox and Buttons. But surprisingly not on
TextBoxes, which
reduces the scope of PrivateFontCollection enormously.

Is this a known bug or by design? Has anyone else got it
to work?

Cheers
/Claus

.

Nov 16 '05 #3

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

Similar topics

3
by: Alex Davis | last post by:
Does anyone know how use fonts that are NOT installed on the system? Alex
0
by: Jonas L | last post by:
Hi, I need to create a textbox which acts as a normal textbox but with the following extra requirements: 1) In-focus color, when the textbox gets focus the backcolor property of the textbox...
4
by: Rodrigo DeJuana | last post by:
Howdy, I'm new to this .net stuff and really have little to no training. Im trying to create a new page for a web form, so i have been pretty much jsut coping code. I having some issue with...
0
by: Johan Martensson | last post by:
Hi I was just wondering if it's possible to use a font added to a PrivateFontCollection, in a textbox. It works fine in labels, buttons, checkboxes and so on but not in a textbox or a...
0
by: Newasps | last post by:
Hi guys, I have a problem with UpdateCommand Event. In tihs event Ä°'m creating required controls to get that controls' values and also get them. But when I try to get updated values I'm getting the...
7
by: I am Sam | last post by:
I have a DataGrid that is passing information to a stored procedure properly but the parameters aren't being casted properly. I was woundering if anyone can tell me how I should properly cast the...
7
by: al jones | last post by:
Okay, I don't have headaches enough from my toy ... If I were to ty to load several fontfiles into a PrivateFontCollection, how would I then select one to use. Let's say that I have a couple of...
0
by: Davy | last post by:
Hi, i'm writing a .Net application for printing barcodes to my climbing club. For simplicity reasons, i've embedded my barcode font as a ressource file. When loading my font as a private font...
0
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
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
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.