Re: Font rendering question - Brush King.otf

2023-07-16 Thread Werner LEMBERG
> Over at Python Pillow, we’ve had a user asking about > https://www.dafont.com/brush-king.font. When Pillow calls > FT_Glyph_Stroke on any of the letters abcdeghkmpqrvwz, FreeType > returns Array_Too_Large. [...] > So, my question - is there something I’ve done incorrectly in the > above

Re: Font Rendering: Multiple FT_Faces and baselines

2023-07-16 Thread Werner LEMBERG
> My problem arises when different faces have different baselines, and > some faces (especially CJK) has weird baselines as CJK scripts > technically don't have a concept of baselines. This causes the text > using different faces to be offsetted vertically. I've thought of > choosing the lowest

Font Rendering: Multiple FT_Faces and baselines

2023-07-16 Thread takase1121 via FreeType users
Hi, I'm working on a renderer using FreeType. The renderer creates a list of FT_Faces, and query each face to find a suitable glyph for a given codepoint. This glyph is then rendered into a bitmap and stored for later use. When text is rendered, the renderer calculates the position of the

Re: rsvg vs skia comparison (the actual skia based ft2-demo ot-svg renderer hook code diff

2023-07-16 Thread Werner LEMBERG
> One question, is c++ built libfreetype binary completely compatible? > It seems the opposite is (c++ built ft2-demos can use c-built > freetype) is. I think that in general it is possible to use C libraries as-is in C++ but not vice versa. > Basically I am thinking of doing a > >

Re: Strange hinting of precomposed character

2023-07-16 Thread Hin-Tak Leung
On Sunday, 16 July 2023 at 07:54:11 BST, Brad Neimann wrote: > ...Can anyone explain what’s > happening here? I would expect that, if the diacritic is to be hinted as > a horizontal bar, that would occur only at the smallest sizes, and would > equally affect the combining diacritic too.

Re: ftbench update: make integrated

2023-07-16 Thread Werner LEMBERG
> * i modified benchmark program not to report 'time per op’ but > rather 'cumulative time per N iterations' > * changed the table design > * sentence 'smaller values are better’ is present > * embed a small CSS fragment at the top of the page > * linked to the original baseline and benchmark

Re: Strange hinting of precomposed character

2023-07-16 Thread Werner LEMBERG
> I’ve attached an interesting hinting problem seen ‘in the wild’. > [...] I would expect that, if the diacritic is to be hinted as a > horizontal bar, that would occur only at the smallest sizes, and > would equally affect the combining diacritic too. The Noto fonts use `ttfautohint` for

Re: rsvg vs skia comparison (the actual skia based ft2-demo ot-svg renderer hook code diff

2023-07-16 Thread Hin-Tak Leung
On Sunday, 16 July 2023 at 07:13:20 BST, Werner LEMBERG wrote: > > I added a "-s" command line option to both ftview and ftgrid to swap > > rsvg out with skia and run the same binary twice, one with "-s" and >.> one without, just to look at them side by side. Fixed the pixel > positioning

Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-16 Thread Hugh McMaster
On Fri, 14 Jul 2023 at 00:49, suzuki toshiya wrote: > > The pkg-config interface should take care of everything easily. Debian > and Ubuntu have the relevant qt5 pkg-config files. Other distributions > should too. > > Does pkg-config give the information for the pathname of moc? > (the original

Re: QT6 build of ftinspect bit-rotten?

2023-07-16 Thread Werner LEMBERG
> Btw, anybody done QT6 build of ftinspect lately? Well, looking into `src/ftinspect/{meson.build,CMakeLists.txt}` I only see build support for Qt5. Apparently, Qt6 support was tested experimentally only. Charlie, can you comment, please? Werner

Re: Bug in rsvg+cairo hook with Nabla? (Re: another small patch for ft2-demos, and other stuff.

2023-07-16 Thread Werner LEMBERG
> [...] I seem to have found a problem with the rsvg/cairo-based hook > with the Google Nabla color font. > > [...] I found that rsvg+cairo hook renders it B/W [...]. Strangely > enough, with the skia-based hook, I see the expected color look. > [...] this seems to suggest that the SVG in this

QT6 build of ftinspect bit-rotten? (Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-16 Thread Hin-Tak Leung
Btw, anybody done QT6 build of ftinspect lately?When I was writing the makefile, I had to install some qt5*-devel packages. I did some qt3/qt4 stuff a long time ago, so I kept those, but uninstalled most of qt5-dev stuff when I see qt6 being installed as part of half-yearly upgrade. I am on

Re: Strange hinting of precomposed character

2023-07-16 Thread Werner LEMBERG
>> I would expect that, if the diacritic is to be hinted as a >> horizontal bar, that would occur only at the smallest sizes, and >> would equally affect the combining diacritic too. > > Somebody more knowledgeable can correct me, but I think combining > diacritics happens with: > > Outline1

Re: skeletal makefile for ftinspect (Re: Future of autotools)

2023-07-16 Thread Hin-Tak Leung
Yes, the moc location on fedora 38 can be queried with: pkg-config Qt5Core --variable=host_bins If this works correctly on other systems, we should set  MOC=`pkg-config Qt5Core --variable=host_bins`/moc Or put PATH=${PATH}:`pkg-config Qt5Core --variable=host_bins` and MOC=moc ? I am more inclined

Bug in rsvg+cairo hook with Nabla? (Re: another small patch for ft2-demos, and other stuff.

2023-07-16 Thread Hin-Tak Leung
On Sunday, 16 July 2023 at 07:02:50 BST, Werner LEMBERG wrote: > >  That fundamentally means it is not possible to switch the renderer > > hook on a per current glyph level, keeping the current face? >.I don't think so – who wants that except weird FreeType demo > programs? :-) > Moazin,

Re: another small patch for ft2-demos, and other stuff.

2023-07-16 Thread Werner LEMBERG
> another small patch for ft2-demos. Should be obvious/trivial. Thanks, applied! > I had a quick look at swapping the renderer hook on the fly. It > seems that it is set when the module is loaded (i.e. the first font > that needs it, I think), and I actually cannot see when it is > unloaded,

Re: rsvg vs skia comparison (the actual skia based ft2-demo ot-svg renderer hook code diff

2023-07-16 Thread Werner LEMBERG
> I added a "-s" command line option to both ftview and ftgrid to swap > rsvg out with skia and run the same binary twice, one with "-s" and > one without, just to look at them side by side. Fixed the pixel > positioning discrepancies. Patch posted online below > > >

Strange hinting of precomposed character

2023-07-16 Thread Brad Neimann
I’ve attached an interesting hinting problem seen ‘in the wild’. The image shows text ⟨ɑ̃ ɛ̃ ẽ ø̃⟩, rendered with  Firefox 116.0b5 in font Noto Sans Regular at zoom levels varying from 100% to 210%. (Although I can reproduce the problem with ftstring too, as long as I force auto-hinting). Note