Re: Blanket Font/Stylesheet Change

2019-04-26 Thread Keisuke Miyako via 4D_Tech
I wrote this utility for a local customer

https://github.com/miyako/4d-utility-restore-object-with-font-number

how to use:

install component
open in 32-bit, on the target platform
run shared method "restore_object_with_font_number"

what does it do?

every object of every form is parsed.
for each object whose stylesheet is "", code is added to the form method
which calls OBJECT SET FONT for that object

how does it work?

on 32-bit, 4D can read the font name of objects directly set in the property 
list
since this system is based on font numbers, the name is always "" on 64-bit

otherwise, the code is fairly basic.
just be sure to create a backup structure.

> 2019/04/26 17:02、Ronnie Teo via 4D_Tech <4d_tech@lists.4d.com>のメール:
> I recently upgraded a v11 application to v15 on Windows Server 2012.
> All works till now when one of their users upgraded their OS to Windows 10.
>
> Now when the user logs in, the some fields and objects on the forms show 
> gibberish.  The fields and other objects normally render in Arial, as 
> specified in the default stylesheet.
> When the forms were checked, the affected field and object properties showed 
> that neither the form nor the stylesheet is not brought over in the 
> conversion.
>
> While this does not pose an issue for clients on other Windows flavours up 
> till now, on Windows 10 it has flared up.
> If the font is re-specified or the stylesheet is re-set from blank to 
> default, everything goes back to normal.
> Short of changing the stylesheet specification for every object for every 
> form by hand, is there a way to do a blanket change?




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Blanket Font/Stylesheet Change

2019-04-26 Thread Ronnie Teo via 4D_Tech
Hi All,

I recently upgraded a v11 application to v15 on Windows Server 2012.  
All works till now when one of their users upgraded their OS to Windows 10.

Now when the user logs in, the some fields and objects on the forms show 
gibberish.  The fields and other objects normally render in Arial, as specified 
in the default stylesheet.
When the forms were checked, the affected field and object properties showed 
that neither the form nor the stylesheet is not brought over in the conversion.

While this does not pose an issue for clients on other Windows flavours up till 
now, on Windows 10 it has flared up.
If the font is re-specified or the stylesheet is re-set from blank to default, 
everything goes back to normal.
Short of changing the stylesheet specification for every object for every form 
by hand, is there a way to do a blanket change?

Regards,
Ronnie
Tarawerkz

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**