Re: Pango pipe stdin and stdout



I don't think I'll get to do that anytime soon. Feel free to submit a patch. Is rather straightforward.  The "intent" option is called --output-format in hb-view.

On Jun 8, 2017 7:18 AM, "Adam Dyson" <adam dyson outlook com> wrote:
Is this ever likely to be built into Pango directly? Looking at the paps repository, it doesn't seem to be updated regularly and I don't want to add another dependency if not needed and especially one that isn't going to be maintained.

On 7 Jun 2017, at 7:25 pm, Behdad Esfahbod <behdad behdad org> wrote:

Looks like I did all of those in hb-view, but not pango-view... So, no, it's not currently possible.  Try paps indeed.

On Sat, Jun 3, 2017 at 6:43 AM, Adam Dyson <adam dyson outlook com> wrote:

I’d like to know whether it’s possible to render text using Pango, by piping text as input to stdin and then also piping the result to stdout?

Ideally I’m wanting something like below, where an argument such as intent defines the output type, because this is normally determined by the output file extension.

Outputting to stdout is defined by a dash and so is reading from stdin, which is common practice for command line utilities.

 

pango-view –q --markup --align=left --margin=0 –intent=svg --output=- -

 


_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-i18n-list




--


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]