Hi Stuart,
Well, the problem you have pointed out is not a bug but undocumented
behavior.
It used to work as expected in 6.0.4.
In 6.1, this behavior was changed because if there were many fonts available
on the client (say 1000s), then all of them would be sent to the server at
the time of start up which would slow down the start up.
Therefore, it was decided not to send this info from the client to the
server. However, it was not documented due to oversight.
The solution is to use the following API in your launcher:
ClientEnvironmentAdapter.getClientInfo().setAvailableFontFamilyNames(
new String[] {"A", "B"});
Basically choose all or subset of fonts available on the client, put them in
a String array and set it on the ClientInfo object. This object has the
client specific attributes and it is sent to the server at start up time.
I hope this helps.
Thanks and regards,
Janak
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Janak Mulani
>Sent: Tuesday, October 17, 2006 6:31 PM
>To: Stuart Booth
>Cc: [email protected]
>Subject: RE: [ULC-developer] ClientContext.getAvailableFontFamilyNames()
>
>
>Hi Stuart,
>
>Thanks for reporting the problem. I have created an issue:
>https://www.canoo.com/jira/browse/UBA-7075
>
>As a work around you can:
>
>1. Extend the launcher and pass the client side font family names as a
>parameter to the server
>
>Or
>
>2. Create a ULCProxy/UIProxy pair with a method that returns the
>client side
>font family names.
>
>Thanks and regards,
>
>Janak
>
>
>
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] Behalf Of Stuart Booth
>>Sent: Sunday, October 15, 2006 8:58 AM
>>To: [email protected]
>>Subject: [ULC-developer] ClientContext.getAvailableFontFamilyNames()
>>
>>
>>When I call the ClientContext.getAvailableFontFamilyNames function, it
>>returns a zero-length string array. Any ideas?
>>
>>I'm using ULC 6.1.1 with java 1.5.0_05
>>
>>Stuart Booth (Abacus Research)
>>
>>_______________________________________________
>>ULC-developer mailing list
>>[email protected]
>>http://lists.canoo.com/mailman/listinfo/ulc-developer
>
>_______________________________________________
>ULC-developer mailing list
>[email protected]
>http://lists.canoo.com/mailman/listinfo/ulc-developer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer