Re: [scribus] Scripter setFontFeatures usage

2020-02-24 Thread Victor / tokiop
Le 24/02/2020 à 00:13, Gregory Pittman a écrit : > At least with the documentation for createCharStyle(), "fontfeatures" include > ligatures, script position (e.g. superscript), capitals, numerals, numeral > width, numeral fractions, numeral zero, and style sets. thanks Greg for your clarificati

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Gregory Pittman
On 2/23/20 4:30 PM, Victor / tokiop wrote: > > Regarding "font features", I wrongly tested with setFontFeatures("bold") > which doesn't seem to be supported, but setFontFeatures("underline") looks > like it should be supported but not added with the correct attribute name. > At least with the d

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Victor / tokiop
Le 23/02/2020 à 20:38, Gregory Pittman a écrit : > Hi Victor, Hi Greg, > I don't find any Scripter command setFontFeatures(). As I look at the > documentation, when font features are referred to, they're talking about > OpenType font features. I didn't find it either in Scribus Manual's Script

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Victor / tokiop
Hi JL, Le 23/02/2020 à 21:13, JLuc a écrit : > This is the way scribus manages bold, italic and other font features : > it's not managed and coded as attribute for the base font > and these variants are only available when the exact altered font exists. > It's said to be the only way to provide a 

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread JLuc
Le 23/02/2020 à 20:57, Victor / tokiop a écrit : As a side note : "bold" doesn't seem to be a valid fontFeature entry. A bold selection is encoded by scribus by switching the font for it's bold variant with FONT="fontName Bold". Adding it manually in the .sla as FEATURES="inherit bold" has no e

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Victor / tokiop
Le 23/02/2020 à 19:59, Peter Nermander a écrit : >> >> setFontFeatures("bold") >> >> > I don't know for sure, but I have a slight memory of an older discussion > about font features and I don't think they can be addressed by name, but > need to be addressed by a number (it may even be font specific

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Victor / tokiop
Le 23/02/2020 à 19:59, Peter Nermander a écrit : >> >> setFontFeatures("bold") >> >> > I don't know for sure, but I have a slight memory of an older discussion > about font features and I don't think they can be addressed by name, but > need to be addressed by a number (it may even be font specific

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Gregory Pittman
On 2/23/20 12:20 PM, Victor / tokiop wrote: > Hi all, > > thanks for this great software and continuous improvements. > > I'm trying to set font feature on selected characters of a text frame from > scripter, using Scribus 1.5.5 AppImage, SVN : 23095, on debian. The > setFontFeatures function l

Re: [scribus] Scripter setFontFeatures usage

2020-02-23 Thread Peter Nermander
> > setFontFeatures("bold") > > I don't know for sure, but I have a slight memory of an older discussion about font features and I don't think they can be addressed by name, but need to be addressed by a number (it may even be font specific). I think the discussion I remember was more about "This

[scribus] Scripter setFontFeatures usage

2020-02-23 Thread Victor / tokiop
Hi all, thanks for this great software and continuous improvements. I'm trying to set font feature on selected characters of a text frame from scripter, using Scribus 1.5.5 AppImage, SVN : 23095, on debian. The setFontFeatures function listed here[1] seems to allow this. Using these steps as a