Click here to Skip to main content
15,885,729 members
Home / Discussions / C#
   

C#

 
AnswerRe: Integer to Time Conversion Pin
Mycroft Holmes4-Jun-12 14:17
professionalMycroft Holmes4-Jun-12 14:17 
AnswerRe: Integer to Time Conversion Pin
PIEBALDconsult4-Jun-12 15:42
mvePIEBALDconsult4-Jun-12 15:42 
GeneralRe: Integer to Time Conversion Pin
ochieman20004-Jun-12 15:43
ochieman20004-Jun-12 15:43 
GeneralRe: Integer to Time Conversion Pin
PIEBALDconsult4-Jun-12 16:24
mvePIEBALDconsult4-Jun-12 16:24 
AnswerRe: Integer to Time Conversion Pin
VJ Reddy4-Jun-12 16:57
VJ Reddy4-Jun-12 16:57 
QuestionAdding a Hover event to this Custom Textbox Control? Pin
nickslick4-Jun-12 12:40
nickslick4-Jun-12 12:40 
AnswerRe: Adding a Hover event to this Custom Textbox Control? Pin
BobJanova6-Jun-12 3:07
BobJanova6-Jun-12 3:07 
QuestionUsing Open-Type font in C# Pin
Alan Balkany4-Jun-12 8:36
Alan Balkany4-Jun-12 8:36 
Hi all,

My application lets a user select a True Type font from the FontFamily.Families enumeration:

foreach (FontFamily ff in FontFamily.Families)
{
    if(ff.IsStyleAvailable(FontStyle.Regular))
        fontCombo.Items.Add(ff.Name);
}


This doesn't work for Open Type fonts, e.g. I just installed Costura Light, and it's now available in MS Word, but invisible to my enumeration above.

Googling doesn't reveal any solution to this; all the sites just assume the font is there after you install it.

What do I have to do to make Open-Type fonts available? Thanks!

=========================

EDIT -- THERE'S NO SIMPLE WAY TO DO THIS: GDI+ ONLY SUPPORTS TRUE TYPE. THERE'S A CONVOLUTED WAY TO USE GDI FOR OPEN-TYPE FONTS FROM MANAGED C++ DESCRIBED HERE: http://www.codeguru.com/cpp/g-m/gdi/fonthandlinganddetection/article.php/c10621/Make-GDI-Less-Finicky-About-Fonts.htm[^]
"Microsoft -- Adding unnecessary complexity to your work since 1987!"


modified 4-Jun-12 16:09pm.

QuestionOOPS Case Study Pin
Kris Erukulla4-Jun-12 5:37
Kris Erukulla4-Jun-12 5:37 
AnswerRe: OOPS Case Study Pin
Luc Pattyn4-Jun-12 5:52
sitebuilderLuc Pattyn4-Jun-12 5:52 
GeneralRe: OOPS Case Study Pin
bsank5-Jun-12 23:41
bsank5-Jun-12 23:41 
GeneralRe: OOPS Case Study Pin
Dave Kreskowiak6-Jun-12 1:51
mveDave Kreskowiak6-Jun-12 1:51 
AnswerRe: OOPS Case Study PinPopular
PIEBALDconsult4-Jun-12 6:06
mvePIEBALDconsult4-Jun-12 6:06 
AnswerRe: OOPS Case Study Pin
Paul Conrad4-Jun-12 6:35
professionalPaul Conrad4-Jun-12 6:35 
AnswerRe: OOPS Case Study PinPopular
Abhinav S4-Jun-12 7:45
Abhinav S4-Jun-12 7:45 
AnswerRe: OOPS Case Study Pin
thatraja4-Jun-12 17:21
professionalthatraja4-Jun-12 17:21 
GeneralRe: OOPS Case Study Pin
Richard MacCutchan4-Jun-12 22:28
mveRichard MacCutchan4-Jun-12 22:28 
GeneralRe: OOPS Case Study Pin
egenis5-Jun-12 21:09
egenis5-Jun-12 21:09 
AnswerRe: OOPS Case Study Pin
Richard MacCutchan4-Jun-12 22:31
mveRichard MacCutchan4-Jun-12 22:31 
QuestionSystem.Net.Sockets IPEndPoint Problem Pin
Midnight Ahri4-Jun-12 0:06
Midnight Ahri4-Jun-12 0:06 
AnswerRe: System.Net.Sockets IPEndPoint Problem Pin
Richard MacCutchan4-Jun-12 1:05
mveRichard MacCutchan4-Jun-12 1:05 
AnswerRe: System.Net.Sockets IPEndPoint Problem Pin
Luc Pattyn4-Jun-12 4:14
sitebuilderLuc Pattyn4-Jun-12 4:14 
QuestionSaving data to SQL from dynamically made comboboxes... Pin
Vidor3-Jun-12 22:27
professionalVidor3-Jun-12 22:27 
AnswerRe: Saving data to SQL from dynamically made comboboxes... Pin
AmitGajjar4-Jun-12 2:06
professionalAmitGajjar4-Jun-12 2:06 
GeneralRe: Saving data to SQL from dynamically made comboboxes... Pin
Vidor4-Jun-12 5:00
professionalVidor4-Jun-12 5:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.