Re: textStyle and Italic

2014-12-13 Thread J. Landman Gay
The information is in the release notes, and the behavior brings font 
management into conformance with how mobile font styling works (there are no 
simulated styles on mobile.) 

The IDE reports italics because that's what was assigned and the engine 
apparently keeps the designation though it no longer can render it. The IDE 
must be using that info to do a font substitution or something similar. Your 
own scripts could do the same. 

On December 13, 2014 1:44:07 AM CST, Terence Heaford t.heaf...@btinternet.com 
wrote:
Do you get informed of this in some way in your method calls?

Why does the IDE say Italic when it isn’t?

All the best

Terry

 On 12 Dec 2014, at 18:24, J. Landman Gay jac...@hyperactivesw.com
wrote:
 
 It's worth noting that the previous OS X routines used synthesised
font styles. That is, bold and italic styles were emulated (by slanting
or thickening)

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

-- 
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

textStyle and Italic

2014-12-12 Thread Terence Heaford
LC Community 6.7.1 (RC3)
OSX Yosemite

Created a new project to test and placed a text entry field on it.

Changed textFormat to Lucida Grande, 14, Italic.

Entered text and it was not Italic despite the property inspector saying it was 
Italic.

Is there a bug?

All the best

Terry
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: textStyle and Italic

2014-12-12 Thread J. Landman Gay

On 12/12/2014, 8:12 AM, Terence Heaford wrote:

LC Community 6.7.1 (RC3) OSX Yosemite

Created a new project to test and placed a text entry field on it.

Changed textFormat to Lucida Grande, 14, Italic.

Entered text and it was not Italic despite the property inspector
saying it was Italic.

Is there a bug?


No, it's a change in how fonts are rendered. See the release notes for 
version 6.7:


It's worth noting that the previous OS X routines used synthesised font 
styles. That is, bold and italic styles were emulated (by slanting or 
thickening) if the font being rendered was not bold or italic. This is 
not the case for the new routines. If there is not a font present on the 
system with the given style, the plain alternative will be used.
The is the case with the default font - Lucida Grande. By default, 
systems only come with the bold variant. Thus, if you have a field with 
the default font and italic style, it will be rendered in plain style.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: textStyle and Italic

2014-12-12 Thread Marty Knapp
That being the case, it would be nice if the fontStyles function worked. 
Currently, no matter what font you input it always shows the same 
result, even if the font does not have the variant:


plain
bold
italic
bold-italic

I did file a bug report almost a year ago - Bug 10650

Marty Knapp

On 12/12/2014, 8:12 AM, Terence Heaford wrote:

LC Community 6.7.1 (RC3) OSX Yosemite

Created a new project to test and placed a text entry field on it.

Changed textFormat to Lucida Grande, 14, Italic.

Entered text and it was not Italic despite the property inspector
saying it was Italic.

Is there a bug?


No, it's a change in how fonts are rendered. See the release notes for 
version 6.7:


It's worth noting that the previous OS X routines used synthesised 
font styles. That is, bold and italic styles were emulated (by 
slanting or thickening) if the font being rendered was not bold or 
italic. This is not the case for the new routines. If there is not a 
font present on the system with the given style, the plain alternative 
will be used.
The is the case with the default font - Lucida Grande. By default, 
systems only come with the bold variant. Thus, if you have a field 
with the default font and italic style, it will be rendered in plain 
style.






___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: textStyle and Italic

2014-12-12 Thread J. Landman Gay

On 12/12/2014, 12:34 PM, Marty Knapp wrote:

That being the case, it would be nice if the fontStyles function worked.
Currently, no matter what font you input it always shows the same
result, even if the font does not have the variant:

plain
bold
italic
bold-italic

I did file a bug report almost a year ago - Bug 10650


I think technically they are no longer fontstyles, they are fontnames. 
You can filter the fontnames with the particular font you are looking 
for and see what styles are available.


It would be nice if the engine could map those for us though, since not 
all fonts follow the same naming scheme.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: textStyle and Italic

2014-12-12 Thread Terence Heaford
Do you get informed of this in some way in your method calls?

Why does the IDE say Italic when it isn’t?

All the best

Terry

 On 12 Dec 2014, at 18:24, J. Landman Gay jac...@hyperactivesw.com wrote:
 
 It's worth noting that the previous OS X routines used synthesised font 
 styles. That is, bold and italic styles were emulated (by slanting or 
 thickening)

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode