Re: [ft-devel] Problem in coordinate convertion in FreeType

2013-09-22 Thread Werner LEMBERG

 Recently, I worded on OCR in Chinese characters, I use FreeType
 (2.3.5) to collect the image samples of character, but the character
 is not center aligned in image, here's my problem post on
 StackOverflow and my Blog: [...]

Please provide a *complete* command line example which compiles out of
the box (ideally with gcc), and which produces simple ASCII output (if
necessary).  Have a look at

  http://freetype.org/freetype2/docs/tutorial/example1.c

to see what I mean.  Actually, it's still too large since it is no
longer a minimal example, but I think you get the idea.


Werner

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


[ft-devel] Latin, Cyrillic, and Greek fonts questions

2013-09-22 Thread Werner LEMBERG

Folks,


I have two questions:

  1.  Do Cyrillic or Greek outline fonts exist which don't contain the
  ASCII characters a-z, A-Z, and 0-9?

  2.  Do you know of any Cyrillic or Greek fonts where the lowercase
  and uppercase glyph heights differ from the heights of the Latin
  glyphs?  Given that all three alphabets share e.g. characters
  `A' and `o', this rather sounds implausible, but who knows...


Werner

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] Latin, Cyrillic, and Greek fonts questions

2013-09-22 Thread Dmitry Timoshkov
Hi Werner,

Werner LEMBERG w...@gnu.org wrote:

 I have two questions:
 
   1.  Do Cyrillic or Greek outline fonts exist which don't contain the
   ASCII characters a-z, A-Z, and 0-9?

I can speek only about Cyrillic here, but I haven't seen any cyrillic font
without latin letters and 0-9 digits. It simply doesn't make sence since
often texts have mixed cyrillic/latin-based context.

   2.  Do you know of any Cyrillic or Greek fonts where the lowercase
   and uppercase glyph heights differ from the heights of the Latin
   glyphs?  Given that all three alphabets share e.g. characters
   `A' and `o', this rather sounds implausible, but who knows...

Again regarding Cyrillic that's not the case, and very often for instance
truetype fonts (Arial is one of them) have cyrillic glyphs as a composite
of the existing latin ones with a transform/composition applied: an example
is: Я - R with a mirroring transform attached.

-- 
Dmitry.

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] Latin, Cyrillic, and Greek fonts questions

2013-09-22 Thread Khaled Hosny
On Sun, Sep 22, 2013 at 08:49:29AM +0200, Werner LEMBERG wrote:
 
 Folks,
 
 
 I have two questions:
 
   1.  Do Cyrillic or Greek outline fonts exist which don't contain the
   ASCII characters a-z, A-Z, and 0-9?

Most of GFS fonts do not contain the ASCII letters:
http://www.greekfontsociety.gr/pages/en_typefaces1.html

   2.  Do you know of any Cyrillic or Greek fonts where the lowercase
   and uppercase glyph heights differ from the heights of the Latin
   glyphs?  Given that all three alphabets share e.g. characters
   `A' and `o', this rather sounds implausible, but who knows...

Not exactly what you are asking for, but GFS Philostratos’ Latin
lowercase is just a copy of the uppercase, though the Greek part has
true lowercase.

Regards,
Khaled

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] Latin, Cyrillic, and Greek fonts questions

2013-09-22 Thread Dmitry Timoshkov
Denis Jacquerye denis.jacque...@daltonmaag.com wrote:

 Some designers have Cyrillic with slightly taller x-height (sometimes by a
 minute amount) to adjust the squareness of the script relative to the
 roundness of Latin, even glyphs that are usually components have adjusted
 outlines. Other designers recommend components but different spacing
 (slightly larger side bearings) instead of x-height to address the issue.

Could you please name a couple of fonts that behave like that?

-- 
Dmitry.

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] Latin, Cyrillic, and Greek fonts questions

2013-09-22 Thread Denis Jacquerye
Hi,

Some designers have Cyrillic with slightly taller x-height (sometimes by a
minute amount) to adjust the squareness of the script relative to the
roundness of Latin, even glyphs that are usually components have adjusted
outlines. Other designers recommend components but different spacing
(slightly larger side bearings) instead of x-height to address the issue.
On 22 Sep 2013 08:47, Dmitry Timoshkov dmi...@baikal.ru wrote:

 Hi Werner,

 Werner LEMBERG w...@gnu.org wrote:

  I have two questions:
 
1.  Do Cyrillic or Greek outline fonts exist which don't contain the
ASCII characters a-z, A-Z, and 0-9?

 I can speek only about Cyrillic here, but I haven't seen any cyrillic font
 without latin letters and 0-9 digits. It simply doesn't make sence since
 often texts have mixed cyrillic/latin-based context.

2.  Do you know of any Cyrillic or Greek fonts where the lowercase
and uppercase glyph heights differ from the heights of the Latin
glyphs?  Given that all three alphabets share e.g. characters
`A' and `o', this rather sounds implausible, but who knows...

 Again regarding Cyrillic that's not the case, and very often for instance
 truetype fonts (Arial is one of them) have cyrillic glyphs as a composite
 of the existing latin ones with a transform/composition applied: an example
 is: Я - R with a mirroring transform attached.

 --
 Dmitry.

 ___
 Freetype-devel mailing list
 Freetype-devel@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/freetype-devel

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] [ft] Latin, Cyrillic, and Greek fonts questions

2013-09-22 Thread Adam Twardoch (List)

On 13-09-22 11:20, Denis Jacquerye wrote:


Some designers have Cyrillic with slightly taller x-height (sometimes 
by a minute amount) to adjust the squareness of the script relative to 
the roundness of Latin, even glyphs that are usually components have 
adjusted outlines.



Veronika Burian's Maiola is one such example.

A.

--

May success attend your efforts,
-- Adam Twardoch
(Remove list. from e-mail address to contact me directly.)


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] manual pages for freetype2-demos

2013-09-22 Thread Werner LEMBERG

 Please find attached some minimal draft man pages, mainly based upon
 the usage output of the various tools.  Any kind of feedback/review
 is appreciated since I hardly know anything about freetype, and
 whether you are interested in adding man pages upstream at all.

Thanks for the man pages, I'll check and eventually add them to the
ft2demos bundle.  I'm not too happy that distributions like Debian
publish all of the FreeType demo programs (for example, `ftgamma' has
essentially no real use); maybe this can be improved somehow.


Werner

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] [ft] Latin, Cyrillic, and Greek fonts questions

2013-09-22 Thread Werner LEMBERG

Thanks to all who have responded.  In git, the auto-hinter now handles
Cyrillic and Greek separately from Latin glyphs.  Please test!

 Cyrillic glyphs need two accommodations.  The letter Ef in capital
 form should overshoot the usual cap height AND overshoot.

You probably mean letter Ef in lowercase form, right?

 Free type should allow for this exception in some way.

This should now work.  I've simply omitted a top blue zone for small
letters with ascenders.

 Small caps in Cyrillic may need to have their own height which
 differs from the one used by the Latin.  Again, it would be ideal if
 free type knows this can happen.

This will be (almost) automatically supported as soon as the linking
issue with HarfBuzz gets resolved.  I've already written the code for
OpenType feature support, which is now waiting for testing :-)


Werner

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] manual pages for freetype2-demos

2013-09-22 Thread Miles Bader
Werner LEMBERG w...@gnu.org writes:
 I'm not too happy that distributions like Debian publish all of the
 FreeType demo programs (for example, `ftgamma' has essentially no real
 use); maybe this can be improved somehow.

Why?  As a Debian user, I'm often glad that the FT demo progs are
there, because they can be useful.

Maybe ftgamma isn't so useful, but if it's not actively _harmful_,
why go to the bother of making an exception?  Users can just ... not
run it.

Thanks,

-Miles

-- 
Custard, n. A vile concoction produced by a malevolent conspiracy of the hen,
the cow, and the cook.

___
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel