Link to home
Start Free TrialLog in
Avatar of dspace
dspace

asked on

TextFont not working

I am trying to use the textfont function to change the font in a dialog box.

I have tried Courier, Courier New, Courier New (TrueType) and COUR.TTF and nothing works.
TextFont("Balance for this Grant: "&$Report&¶&¶&"  Total = "&FormatNumberasText($TotalBalance;"$";",";".";2);"Courier New")

Open in new window

Avatar of jvaldes
jvaldes
Flag of United States of America image

is $Report text? Remember all items should be text
Avatar of dspace
dspace

ASKER

Yes, $Report starts as "" and I add to it each time through a loop.
Avatar of Member_2_908359
missing double quote after $report, be it text or not, it is a variable, treat it as a field.
which gives:
TextFont("Balance for this Grant: " & $Report & "¶¶  Total =  " & .....
so the font name is not the pb, it works the way it is.
also FormatNumberasText must be a custom function, otherwise that does not exist, just in case...
Avatar of dspace

ASKER

That doesn't seem to be it.  

Now I've tried evaluating textfont("alphas: 0123456789";"Courier New")  in the data viewer and it still does nothing.  I've also tried it with other fonts such as Tahoma and Times New Roman, also with no luck.
Avatar of dspace

ASKER

In fact, now that I've started playing with it in Data Viewer, I can't get it to work for either text strings or fields.  Since I have to believe that it actually does work, I'm guessing that I'm not providing the correct name for the font.

I've tried:

Courier
Courier New
Courier New Bold
Tahoma
Times New Roman
are you /win or osX ? I can post a file which works on the same machine (I have both) 'Courier New' is OK... normally!
Avatar of dspace

ASKER

I've tried it on:

Win XP SP3
and OSX 10.5.6

FM9 and FM10
take my example here, tested under windows and mac:
http://pagetruck.com/uploads/13kx3tq5JdIsTkXYzmaXAA23dUw5DhOx/textfont.fp7
and let me know.
Avatar of dspace

ASKER

I get this message trying to access that link:

The requested URL /uploads/13kx3tq5JdIsTkXYzmaXAA23dUw5DhOx/textfont.fp7 was not found on this server.
SOLUTION
Avatar of Member_2_908359
Member_2_908359
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
it does, but the data viewer is not supposed to be "styled", is it? does it show colours for instance, or point size?
Avatar of dspace

ASKER

I didn't try that, but if you're asking, I'm sure it doesn't.  I'm guessing that't the same problem with trying to assign a style to text in a Custom Dialog.
yes, only a layout is supposed to interprete the styles, otherwise there are ignored.