Hi,
Is there some way of accessing Pango from PHP? (I'm on Windows, but
Linux would work too)
Ideally without having to build anything from scratch.
I found some PHP bindings written about a decade ago, but can't get them
to work. https://github.com/mgdm/php-pango
Thanks!
Alex
---
This
There's a great little tutorial on that here:
http://x11.gp2x.de/personal/google/
see the last section (Cairo Tricks) and example at the bottom
You'll want the Cairo manual for the API details, here:
http://www.cairographics.org/manual/index.html
You can search in your browser page for the
On 06/06/2013 07:35, Ryan Schmidt wrote:
On Jun 5, 2013, at 19:28, Alex Kerr wrote:
I have installed very latest versions (as of writing) of: Ubuntu 32 bit server
edition, Freetype, Graphite2 (I need to use Graphite fonts as well as OpenType
ones), GLib, Cairo, Harfbuzz, Fontconfig
All installed
Apologies, I know this is something of a newbie question but Google (and
searching archives for this mailing list) isn't turning up any answers
despite a while looking...
I'm trying to setup a rendering stack so I can render text in a variety
of fonts to a Cairo surface (using a C prog).
I
Hi all,
I've rendered some text (via PangoCairo), got the LogAttrs using
pango_layout_get_log_attrs(), and then I'm walking through the glyphs in
a run, like this:
for (i = 0; i Run-glyphs-num_glyphs; i++)
{
glyphID = Run-glyphs-glyphs[i].glyph;
Just a thought, assuming I've understood correctly - can't you use the
PangoLogAttr structure (i.e. check what's in it) while people are typing
their input (as you can use Pango for rendering and cursor placement etc
in this context anyway) and then generate a hyphen when and where you
want
Hi August,
Yes I saw that thanks, but the issue was it was hard to discern what the
actual API calls were, given that I don't do Python and correlate those
with the C APIs listed in the Pango manual, the Python wrappers seem to
match up exactly with the C API functions.
Also I'm after
wrote:
On 04/20/11 09:14, Alex Kerr wrote:
Thanks very much for the help.
You definitely can do it with glyphs...
OK, cool, so how - i.e. which APIs and how do I tie them together please?
That's what's got me stuck!
...but is that really what you want? There's simpler API in pango to do
in C!
Cheers
Alex
On 20/04/2011 06:11, Behdad Esfahbod wrote:
On 04/19/11 16:27, Alex Kerr wrote:
Hello,
Hi Alex,
I'm using a really basic Cairo Pango prog as a test bed. It just displays a
short string on a Cairo surface using a Pango layout, which works fine.
For each glyph in the string
Hello,
I'm using a really basic Cairo Pango prog as a test bed. It just
displays a short string on a Cairo surface using a Pango layout, which
works fine.
For each glyph in the string, I now want to get it's X,Y pos (and width
and height) on the rendered Cairo surface, and the PangoLogAttr
the bitmap up (or copy from
it) according to position data held in the structures somewhere - but
not sure of specifics! Any specifics much appreciated :)
Many thanks,
Alex
On 14/03/2011 20:56, Behdad Esfahbod wrote:
On 03/14/11 15:38, Alex Kerr wrote:
Also, I don't suppose it's possible
Hi,
I've hunted around but can't find a definitive list of languages or
scripts that Pango can render. I realise it's probably changing all the
time, but was looking at this picture:
http://upload.wikimedia.org/wikipedia/commons/6/60/WritingSystemsoftheWorld4.png
and wondering which Pango
Hi,
Can anyone suggest a method for extracting the rendered glyph images in
image form (i.e. after combining and shaping) for any script please? I
need them in visual order, not logical order.
i.e. what APIs to use, or even source code (/pseudocode). Context is any
script, but especially
13 matches
Mail list logo