Re: [HarfBuzz] Beginner question: What are cluster levels?

2016-01-08 Thread Behdad Esfahbod
On Jan 8, 2016 8:09 PM, "Khaled Hosny" wrote: > > On Fri, Jan 08, 2016 at 04:47:14PM +, Behdad Esfahbod wrote: > > Now, if for example, B and C ligate, then the clusters to which they belong > > "merge". The merged cluster gets the number that is the minimum of the > > cluster number of the c

Re: [HarfBuzz] Beginner question: What are cluster levels?

2016-01-08 Thread Khaled Hosny
On Fri, Jan 08, 2016 at 04:47:14PM +, Behdad Esfahbod wrote: > Now, if for example, B and C ligate, then the clusters to which they belong > "merge". The merged cluster gets the number that is the minimum of the > cluster number of the clusters that went in. In this case, we get: > > A,BC,

Re: [HarfBuzz] Beginner question: What are cluster levels?

2016-01-08 Thread Behdad Esfahbod
Ok, let me attack this head on. Hopefully someone will lift the information here and put it in the documentation. When you add text to a HB buffer, each character is associated a cluster value. This is an arbitrary number as far as HB is concerned. Most clients will use UTF-8, UTF-16, or UTF-32