Re: [HarfBuzz] Simplish example using HarfBuzz with Qt

2012-10-07 Thread Jiang Jiang
Hi Khaled,

On Sun, Oct 7, 2012 at 9:31 AM, Khaled Hosny khaledho...@eglug.org wrote:
 Hi all,

 A while ago I wrote a very simple example of using HarfBuzz to draw text
 on a Qt canvas (QPainter) while helping a friend. I don’t know much of
 Qt and it does not do much, but I thought it might help someone, so I’ve
 put it on GitHub:
 https://github.com/khaledhosny/QtHarfBuzzExample

Looks fine to me besides that most variables should rather be
initialized out of the paintEvent(). For simple demo code it's ok.

- Jiang
___
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz


Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Jiang Jiang
Hi Behdad,

On Mon, Mar 24, 2014 at 8:00 PM, Behdad Esfahbod beh...@behdad.org wrote:
 On 14-03-24 01:32 AM, James Clark wrote:
 I had another go at building harfbuzz from git on Mac OS X.  Using Homebrew,
 together with gtk-doc's now being optional, made it an order of magnitude
 easier than last time (glib and freetype are so that hb-shape builds):

 A while ago I put MacPorts instructions on the harfbuzz homepage.  In 
 particular:

 To start from git, do this:

 sudo port install autoconf automake libtool pkgconfig ragel gtk-doc
 sudo port install freetype glib2 cairo

 If you can tell me the brew equivalent of those I'll add to the page.  Like:

 brew install autoconf automake libtool pkg-config ragel gtk-doc??
 brew install freetype glib cairo?

 # Install Xcode command line tools

 xcode-select --install
 # Install homebrew
 ruby -e $(curl -fsSL 
 https://raw.github.com/Homebrew/homebrew/go/install)
 brew doctor
 # Do what brew doctor says (I had to move some stuff in
 /Library/Frameworks out of the way)
 brew install ragel
 brew install automake
 brew install pkg-config

 brew install glib
 brew install libtool
 brew install freetype
 # Get harfbuzz
 git clone https://github.com/behdad/harfbuzz.git
 cd harfbuzz
 ./autogen.sh
 make

 # Install Xcode command line tools

I followed this instruction.

Build configuration:

Unicode callbacks (you want at least one):

Glib: true
ICU: false
UCDN: false

Font callbacks (the more the better):

FreeType: true

Tools used for command-line utilities:

Cairo: false

Additional shapers (the more the better):

Graphite2: false

Platform shapers (not normally needed):

CoreText: false
Uniscribe: false

Other features:

Documentation: false
GObject bindings: false
Introspection: false

after make, I tried to run src/test:

./src/test /Library/Fonts/Verdana.ttf
Opened font file /Library/Fonts/Verdana.ttf: 186188 bytes long
cluster 0 glyph 0x0 at (0,0)+(2048,0)
cluster 0 glyph 0x0 at (0,0)+(2048,0)
cluster 6 glyph 0x0 at (0,0)+(2048,0)
cluster 6 glyph 0x0 at (0,0)+(2048,0)
cluster 12 glyph 0x0 at (0,0)+(2048,0)

Am I missing something or why are the glyphs always 0?

- Jiang
___
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz


Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-24 Thread Jiang Jiang
On Mon, Mar 24, 2014 at 10:12 PM, Jiang Jiang gzjj...@gmail.com wrote:
 Am I missing something or why are the glyphs always 0?

I just realized that src/test.cc adds some UTF-8 text that might not
be supported by the font given. I changed the text to some ASCII text
and it seemed to work.

However, I am also trying with an example where I simply create the
face from a CGFontRef like this: https://gist.github.com/jjgod/9749641

I run it with: ./test-hb-coretext Palatino abc

Yet I always got:

cluster 0 glyph 0x0 at (0,0)+(1536,0)
cluster 1 glyph 0x0 at (0,0)+(1536,0)
cluster 2 glyph 0x0 at (0,0)+(1536,0)

So it appears that the bounding box is correct but glyph id is always
0, is that supposed to work?

- Jiang
___
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz


Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-25 Thread Jiang Jiang
On Tue, Mar 25, 2014 at 11:14 PM, Behdad Esfahbod beh...@behdad.org wrote:
 In case anyone wondering (doesn't seemed to see any interests in this
 scenario), I managed to get it working by implementing a set of Core
 Text font_funcs for HarfBuzz:
 https://github.com/jjgod/harfbuzz/commit/08ac195ed88c157eaca82d462371ca0bf5fff81e

 Thanks.  I have been wanting to do this.  Will check it out.

There are things missing like getting kernings and things I totally
forgot how to use like
CTFontGetVerticalTranslationsForGlyphs(). Also I probably got the
advances/bounding boxes wrong as I completely forgot the floating
point/fixed point conversion details.

- Jiang
___
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz


Re: [HarfBuzz] Building from git on OS X with Homebrew

2014-03-26 Thread Jiang Jiang
On Wed, Mar 26, 2014 at 5:56 AM, Konstantin Ritt ritt...@gmail.com wrote:
 That's a great improvement, thanks Jiang.
 Even more... it clearly shows the truncation issue I was describing several
 times already
 (http://lists.freedesktop.org/archives/harfbuzz/2014-February/004149.html).
 I'll add some comments to
 https://github.com/jjgod/harfbuzz/commit/08ac195ed88c157eaca82d462371ca0bf5fff81e

Thanks for the review, I will check the existing coretext shaper code
to fix these issues.

- Jiang
___
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz


Re: [HarfBuzz] A plea to make HarfBuzz easier to build.

2015-12-15 Thread Jiang Jiang
On Tue, Dec 15, 2015 at 9:14 PM, Jonathan Blow  wrote:
> Sure, it would be fine to add this; there is also a for-loop in one spot
> that doesn't compile in Visual Studio because it declares an enum inline, so
> one has to move the enum.
>
> But these things don't matter, they only take a minute to fix. It's trivial.
> Whereas getting the library to build and link for the first time is measured
> in hours.
>
> It is a two-orders-of-magnitude difference, which is why I am saying that if
> widespread use of the code is a goal, making it easier to build should be
> the priority.

Bootstrap with an autoconf/automake build system is never very Windows
friendly, I'd say it's quite hostile to Windows developers. I guess
switching to CMake can be a huge step forward for Windows developers
if someone is willing to maintain it.

That said, both Gecko and Chromium have their own build systems to
build HarfBuzz, which can be an easier start, however those projects
rarely allows you to have a standalone HarfBuzz checkout or build
*only* the HarfBuzz library.

- Jiang

>
> On Tuesday, December 15, 2015, Behdad Esfahbod 
> wrote:
>>
>> On 15-12-13 09:33 PM, Jamie Dale wrote:
>> > You'll need a define to stub out getenv for a PS4 build
>>
>> I'll take a patch to hb-private.hh to do that.
>
>
> ___
> HarfBuzz mailing list
> HarfBuzz@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
___
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/harfbuzz


Re: [HarfBuzz] Still Failing: harfbuzz/harfbuzz#2583 (master - 5078044)

2018-02-14 Thread Jiang Jiang
Any chance we can make the CI a little quieter or send it to a different
list?

On Wed, Feb 14, 2018 at 2:15 AM, Travis CI  wrote:

> *harfbuzz / harfbuzz
> *
> (master )
> Build #2583 is still failing.
> 
> 4 minutes and 21 seconds
> *Behdad Esfahbod* 5078044
> 
>  Changeset
> →
> 
>   [use] Add dump-use-data
>
> *Want to know about upcoming build environment updates?*
>
> Would you like to stay up-to-date with the upcoming Travis CI build
> environment updates? We set up a mailing list for you! Sign up here
> .
> Documentation  about Travis CI
> Need help? Mail support !
> Choose who receives these build notification emails in your configuration
> file .
>
> *Would you like to test your private code?*
>
> Travis CI for Private Projects
> 
> could be your new best friend!
>
> ___
> HarfBuzz mailing list
> HarfBuzz@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
>
___
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/harfbuzz