CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 9/5/2003 7:53:31 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 30 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
josephbui
Asp.Net User
How to properly render Font9/5/2003 7:53:31 PM

0/0

What is the browser compatible proper way to render a Font when overriding the Control.Render method?

I've looked around, and it looks like I should do

protected override void Render(HtmlTextWriter writer)
{
writer.AddStyleAttribute(HtmlTextWriterStyle.FontFamily, Font.Name);
writer.AddStyleAttribute(HtmlTextWriterStyle.FontSize, Font.SizeInPoints.ToString());
writer.RenderBeginTag(...);
...
writer.RenderEndTag();
}


Is there a better way to render a font into a tag? I feel like I'm missing some method like HtmlTextWriter.AddFont(Font font). I also feel like I'm missing something about CSS properties. There's an enumeration HtmlTextWriterTag and HtmlTextWriterStyle, is there is enumeration of CSS properties?

I'm doing this so I can subclass HtmlForm, add a Font property to it, and then subclass all the WebControls that use TABLE tags for layout and have them look up through the control hierarchy for their font if they don't have a font assigned to them declaratively or in code.
hlaford
Asp.Net User
Re: How to properly render Font9/9/2003 3:20:56 PM

0/0

you already are using the enumeration of CSS properties via HtmlTextWriterStyle.

it may be easier to use simple CSS rather than code. not so much subclassing just for fonts.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
TeX Unbound: LaTeX & TeX Strategies for Fonts, Graphics, & More Authors: Alan Hoenig, Pages: 580, Published: 1998
CJKV Information Processing: Chinese, Japanese, Korean & Vietnamese Computing Authors: Ken Lunde, Pages: 1101, Published: 1999
EP92: Proceedings of Electronic Publishing, 1992 Authors: C. Vanoirbeek, G. Coray, Pages: 316, Published: 1992
Core Swing: Advanced Programming Authors: Kim Topley, Pages: 960, Published: 2000
HTML 4 For Dummies Authors: Ed Tittel, Mary C. Burmeister, Pages: 432, Published: 2005
Open Hypermedia Systems and Structural Computing: 6th International Workshop, OHS-6, 2nd International Workshop, SC-2, San Antonio, Texas, USA, May 30-June 3, 2000 : Proceedings Authors: Siegfried Reich, Kenneth M. Anderson, Pages: 183, Published: 2000
Desktop Encyclopedia of Telecommunications Authors: Nathan J. Muller, Pages: 1250, Published: 2002
Java Internationalization Authors: Andy Deitsch, David Czarnecki, Pages: 462, Published: 2001

Web:
Firefox not rendering Devanagari fonts properly - Ubuntu Forums Firefox not rendering Devanagari fonts properly Mandriva.
Bug #167076 in Inkscape: “Various fonts refuse to render properly” On my system some fonts refuse to render properly in Inkscape. This however only seems to effect some of my fonts and in other applications (like Gimp) even ...
PHP Bugs: #23527: PostScript Type 1 font do not render properly Bug #23527, PostScript Type 1 font do not render properly. Submitted: 7 May 2003 8:52am UTC, Modified: 14 May 2003 9:27pm UTC. From: nid at home dot se ...
[gentoo-user] KDE no longer rendering fonts properly What happened to my KDE 3.5.3? The fonts are "gone" sorta -- at least to the point that makes KDE unusable. If I fire up a terminal, the window is black, ...
Flat view does not render properly in Chrome (font-size problems ... Flat view does not render properly in Chrome (font-size problems). Last post 10- 14-2008 9:55 AM by bullpit. 1 replies. Sort Posts: ...
BlackBerry Support Community Forums - How to make JDE render ... How to make JDE render modern fonts properly? ... Is there a way to make the JDE render modern fonts (like Consolas, for instance) properly. ...
iWeb: Double-byte fonts may not render properly on Internet Explorer iWeb: Double-byte fonts may not render properly on Internet Explorer ... Double- byte fonts (such as Japanese Kanji) used on web sites may display ...
[graphviz] fonts not rendering properly in PNG Previous message: [graphviz] fonts not rendering properly in PNG; Next message: [graphviz] fonts not rendering properly in PNG; Messages sorted by: [ date ...
Firefox 1.0 does not render fonts properly when printing ... Firefox 1.0 does not render fonts properly when printing. User Help for Mozilla Firefox (Anonymous/guest posting allowed). 2 posts • Page 1 of 1 ...
Firefox not rendering Devanagari fonts properly [Archive] - Ubuntu ... I can type properly using this keyboard on other applications and the font rendering is ok. Rendering in firefox is the only problem. ...

Videos:
www.moldytoaster.com in collecting and studying the plants of the neighbourhood. We hired a large and good bungalow, in which three immense coal fires* [This coal is ...




Search This Site:










persisting childcontrols at designtime

help me..about system.componentmodel.component(how can i get component id)

can i access the querystring in a control?

equation in asp.net

tagprefix question

rebuilding a control on postback

need help to run online

modifiying validaterequest in codebehind

requiredcheckboxlistvalidator

trying to find web hosting at reasonable cost for number of databases used with my sites.

read static public property of dynamic user control class

collectioncontrol and viewstate

what do i tell hoster in regards to security setting?

session value in webusercontrol

collection editor is not displaying object properties

custom designers

godaddy and sql server

are windows hosting rates killing us rapidly

using user control a crossed subdomain

visual web developer express - who can host the sites?

returning custom datagriditem from datagrid

composite control event problem

exchange sals for 2005 and corp web access

isa server

how to position control

web user control

property to run an exe

treeview populateondemand

looking for providers that will help our customer install our software?

need help differentiating hosting providers

  Privacy | Contact Us
All Times Are GMT