Oracle Forms 12c - FSAL - Mac OS - Font Issue - Oracle Forums
Oracle Forms 12c - FSAL - Mac OS - Font Issue - Oracle Forums
Oracle Forms
Announcement
For appeals, questions and feedback about Oracle Forums, please email oracle-forums-
[email protected]. Technical questions should be asked in the appropriate category.
Thank you!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle?
Check out this post for AppDev or this post for AI focus group information.
Hello,
I have an Forms 12c FSAL application that is running as expected on Windows machines. It
will start up and run just fine on a Mac, but the fonts all are incorrect both in type and size,
for example I am expecting to see an Arial font size 9, but I am getting something entirely
different on the Mac. Also the application windows seem to be quite a bit larger than
expected. I have tried a few adjustments to the registry.dat file but that didn't seem to help
any. Is there anything I can do to in the FSAL or Weblogic configuration to correct the fonts
and the application window size? Any thoughts or suggestions would be greatly appreciated.
Thanks,
Lee
Comments
The issue really has nothing to do with the fact that you are using FSAL. This is more of a
Java / Font issue. Part of the problem occurs as layers. For example (just an example), if it's
the case that in your application you have explicitly declared a particular font for most, but
not all objects (some left as UNSPECIFIED) and that font happens to be an MS specific font
that doesn't exist on MAC, Unix/Linux, etc then an attempt at remapping must occur. The
mapping in Registry.dat attempts to do this. However, in some cases, what may be an Arial 9
on Windows may not exactly be the same on MAC. The result is a difference like you are
seeing. Another factor is the display and resolution.
Rather than me rambling on, try using clientDPI to make some adjustments. This is an applet
parameter that basically acts as a magnifier, so you don't want to go crazy with this because
it is not capable of perfectly scaling the display.
To use clientDPI you will need to add it to the Forms Web Configuration (i.e. formsweb.cfg)
and the appropriate template (basesaa.txt in your case). If you believe the form appears too
large on MAC, start by making small changes. The default value is 96. So start with
something like 90 and see if this improves the appearance.
Gary,
Mike
Michael,
Thanks for the tip about clientDPI setting, Adding clientDPI setting to formsweb.cfg helped
immensely with the size of the application on the MAC. I ended up settling with clientDPI=93
.. Now I can see all of the windows in there entirety. Yay!
The fonts still look bold and "blocky" on the Mac. They look almost like a bold Courier font..
should I experiment more with the registry.dat or change some of the fonts in the forms?
Also I had one more question.. The application has buttons where Access Keys have been set
up. When the application runs on Windows these Access Keys work as they should. But on
the MAC, they seem unresponsive regardless if you use the Control, Option or Command key
along with specified letter in the Access Key property. Is there a way to make the Access Keys
work for the MAC?
Lee
Thanks Michael. I never used uifont.ali and only mentioned it because I knew it was some
sort of font file. Didn't know it was only for reports. I'm happy with whatever fonts forms
throws at me :-)
Lee,
You can play arround with font settings in Registry.dat, but understand that those changes
are only apply to corresponding objects/text that does not have a hard coded value within.
In other words, if the font attributes are set to UNSPECIFIED at design time then the
Registry.dat settings will apply.
Here's another not well known trick. It's likely you won't want these Registry.dat changes
impacting all applications and/or users. So to create unique entries, name them and create
unique config sections in your Web Configuration (i.e. formsweb.cfg). Example:
In Web Configuration:
[SalesForWindows]
form=sales
serverApp=
[SalesForMAC]
form=sales
Registry.dat:
default.fontMap.defaultSize=900
MAC.fontMap.defaultSize=700
When calling the app from a MAC, use config=SalesForMAC. The result should be that any
fonts that do not have a specified size will use the "700" I set in my example above. For
Windows users, use config=SalesForWindows. They will pick up "serverApp=" which would
cause the default to be used. You could also specify "default", but that happens
automatically.
The same is can be done for all the other properties in Registry.dat that begin with "default.".
If you are having problems with access keys, it might be best to work that with Support.
However, before doing so be sure you are using the latest Java 8 version on the user tier.
Mike,
Thanks for your suggestion about using two configurations in formsweb.cfg. I was able to set
up one configuration for Windows and another one for the MAC. Each was setup to with a
different serverApp parameter. I then used the serverApp parameter to assign fonts in
registry.dat..
formsweb.cfg
[standalone_windows]
serverApp=
[standalone_mac]
serverApp=MAC
Registry.dat
default.fontMap.defaultFontname=Dialog
default.fontMap.defaultSize=900
default.fontMap.defaultStyle=PLAIN
default.fontMap.defaultWeight=PLAIN
MAC.fontMap.defaultFontname=Arial
MAC.fontMap.defaultSize=900
MAC.fontMap.defaultStyle=PLAIN
MAC.fontMap.defaultWeight=PLAIN
default.fontMap.appFontnames=Courier
New,Courier,courier,System,Terminal,Fixed,Fixedsys,Times,Times New Roman,MS Sans
Serif,Arial
default.fontMap.javaFontnames=MonoSpaced,MonoSpaced,MonoSpaced,Dialog,MonoSpac
ed,Dialog,Dialog,Serif,Serif,Dialog,SansSerif
MAC.fontMap.appFontnames=Courier
New,Courier,courier,System,Terminal,Fixed,Fixedsys,Times,Times New Roman,MS Sans
Serif,Arial
MAC.fontMap.javaFontnames=MonoSpaced,MonoSpaced,MonoSpaced,Dialog,MonoSpaced
,Dialog,Dialog,Serif,Serif,Dialog,Arial
For MAC setup, I tried to change the default size without changing defaultFontname
parameter.. it sort of worked, but the fonts throughout the application looked a little
strange. Next I tried changing the default font name to Arial and mapping Arial to Arial.
That seemed to make the fonts look a lot better. Now I am not sure why that worked, but it
seems to have done trick.
Now I just need to figure out the issue with Access Keys on the MAC...
Thanks,
Lee
1-7
7 comments
807 views
Learn Resources
What is cloud computing? Try Oracle Cloud
What is CRM? Free Training
What is Docker? Arm for Developers
What is Kubernetes? Cloud Architecture Center
What is Python? Reference Architectures
What is SaaS? Solution Playbooks
Red Bull Racing
Stay Connected
Developer Newsletter
Events
Developer Live
Blog - Developer
Blog - Cloud Infrastructure
Oracle Developer Community
Twitter - Oracle Developers
© Copyright 2024 | Site Map Privacy / Do Not Sell My Info Ad Choices Careers
Community Integrity Policy
Built with
using Oracle APEX