Reply
 
LinkBack Thread Tools Display Modes
Old 03-04-2010, 11:05 PM   #1 (permalink)
Senior Member
 
Join Date: Mar 2006
Location: Novato (20 miles north of San Francisco)
Posts: 445
fryeguy is on a distinguished road
Default Fonts Unavailable

I have a font we chose to use for our proposal packages but It doesn't show up as an option when I manipulate my custom reports. I have the font in both True Type and Open Type.

Anyone know why some fonts simply don't show up in the list?

Any tricks for adding them programmatically in a script?
fryeguy is offline   Reply With Quote
Old 03-08-2010, 09:33 PM   #2 (permalink)
Senior Member
 
Join Date: Mar 2006
Location: Novato (20 miles north of San Francisco)
Posts: 445
fryeguy is on a distinguished road
Default

DataDynamics recommended I take a look at this code bt I am running into a problem...

Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
Me.Label1.BackColor = System.Drawing.Color.BlanchedAlmond
Me.Label1.Font = New System.Drawing.Font("Arial", 12)
Me.Label1.ForeColor = System.Drawing.Color.Brown
'With the properties above set, the Style string would be:
'this.Label1.Style = color: Brown; background-color: BlanchedAlmond; font-size: 12pt;
End Sub

I get the feeling that accessing properties of the Label object (or of a textbox in other cases) may not be allowed by the limited implementation of ActiveReports within D-Tools. Any thoughts?
fryeguy is offline   Reply With Quote
Old 03-10-2010, 02:22 AM   #3 (permalink)
Senior Member
 
Join Date: Mar 2006
Location: Novato (20 miles north of San Francisco)
Posts: 445
fryeguy is on a distinguished road
Default

Using this code:

CType(rpt.Sections("grpHeadings").Controls("Label1 "), Label).Font = new Font ("Minion Pro", 10)

I can actually preview and publish the report.

I can tell the code has an effect because while the font is still Arial or something close, the code wipes out the formatting set by the report designer control.

What is it with this font that is so strange?

Does D-Tools have any ideas regarding availability of fonts from the Report designer??
fryeguy is offline   Reply With Quote
Old 03-11-2010, 09:05 PM   #4 (permalink)
Senior Member
 
Join Date: Mar 2006
Location: Novato (20 miles north of San Francisco)
Posts: 445
fryeguy is on a distinguished road
Default

OK, so all the above work has turned out to be inconsequintial...

Apparently ActiveReports does not care for OpenType fonts. I'm sure someone will write back and say they use OpenType fonts just fine. I can't explain the technicalities for this issue but some OpenType fonts are tricky.

Turns out the font I was using is definitely an OpenType font. I found a font conversion utility: http://www.geocities.jp/meir000/font...2009_10_28.zip

It runs in a self-contained linux like environment. You simply run a batch file, the program launches with a dialog asking to open a font. Choose a font, it opens and you can see all the characters. Under the File menu choose "Generate fonts". In the next dialog change the font type to TrueType and change the filename/extension as necessary (TrueType should be .ttf). reinstall the new converted font and ActiveReports will play nice.
fryeguy is offline   Reply With Quote
Old 03-15-2010, 10:20 PM   #5 (permalink)
Senior Member
 
Join Date: Mar 2006
Location: Novato (20 miles north of San Francisco)
Posts: 445
fryeguy is on a distinguished road
Default

better yet just go to: Online font converter

you can upload a font and choose the format you want. converted font in seconds...
fryeguy is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.