Re: Debugging Freetype Exception in PDFium WASM Build

2024-09-14 Thread Werner LEMBERG
> I am building a debug standalone PDFium WASM build to work outside of > browers using https://github.com/paulocoutinhox/pdfium-lib. [...] > > I'm able to render most text but I occasionally run into the > following stacktrace but I can't tell what could cause this to fail. > > I have included

Announcing FreeType 2.13.3

2024-08-12 Thread Werner LEMBERG
FreeType 2.13.3 has been released. It is available from https://savannah.nongnu.org/download/freetype/ or https://sourceforge.net/projects/freetype/files/ The latter site also holds older versions of the FreeType library. See below for the relevant snippet from the CHANGES file. En

Re: Synthesize cmap from a TrueType Font

2024-08-07 Thread Werner LEMBERG
>[...] is there a way for me to know at runtime, if FreeType has > created a new cmap? Is a flag set? No, there is no flag set, and I think it doesn't help if it were available – either you trust a font that it is valid, or you don't. This said, you might access the 'cmap' table directly (using

Re: Synthesize cmap from a TrueType Font

2024-08-07 Thread Werner LEMBERG
Hello Ciaran, > Just a follow up about the issue I raised earlier: > https://gitlab.freedesktop.org/freetype/freetype/-/issues/1289 > > The new synthesize cmap seems to be incorrect. The wrong glyphs are > used. Assuming that the 'Apple Roman' encoding is correct (which you seem to imply), thi

Re: Finding out the appropriate texture size for a font

2024-07-28 Thread Werner LEMBERG
> > have to convert to pixels > > Can you explain how to do that? Since the bounding box is fixed, I > presume it will somehow involve the pixel size I'm passing to to > FT_Set_Pixel_Sizes. I've gone through the documentation and am > still a little confused. Simply apply the standard formula

Re: Finding out the appropriate texture size for a font

2024-07-27 Thread Werner LEMBERG
>> If you can loosen this restriction you might use the font's global >> bounding box (`FT_Face::bbox`) plus some pixels added for both the >> x and y directions (to accommodate for hinting). > > This would be good enough for me. I tried it out and found that the > value of bbox is always *{xMin:

Re: Finding out the appropriate texture size for a font

2024-07-26 Thread Werner LEMBERG
> In my program I have a texture array where I want to cache the > rasterized bitmaps for the characters. This texture array will need > to be big enough to accommodate the widest and tallest characters in > the font. How do I calculate the appropriate size for this texture. > I'm using `FT_Set

Re: Thanks for the tutorial!

2024-07-19 Thread Werner LEMBERG
Hello Alan, > I was looking to convert some TTF fonts to bitmaps for use in the > Linux console, and I was wondering whether freetype might be the > right software for this. What exactly are you doing? You have glyphs indices, and you want to convert them to bitmaps? If this is correct, then

Re: Font rendering question - Apple Color Emoji.ttc

2024-06-14 Thread Werner LEMBERG
> After failing to figure out run a debug build of FreeType and get > the output, I started just investigating with print statements. Sorry, I should have pointed to https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/docs/DEBUG how to activate debugging messages. > I found that t

Re: Font rendering question - Apple Color Emoji.ttc

2024-06-08 Thread Werner LEMBERG
Hello Andrew, sorry for the late reply. > Over at Python Pillow, a user has tried to render an emoji with > macOS’ Apple Color Emoji.ttc - I don't have this font. I only have the ancient `Apple Color Emoji.ttf` version 8.0d7e1 from 2012... Without having that font I can only do an educated g

Re: Freetype API for current hint info in variable fonts

2024-05-23 Thread Werner LEMBERG
> I was able to get the current outline information of a selected > character from an OpenType variable font (CFF2) with the help of > Freetype. OK. > I would also like to get the current hinting information for a > character which of course depends on the current coordinates in > design spa

Re: regarding gsoc

2024-03-25 Thread Werner LEMBERG
Hello Akash, > I am interested in the gsoc project titled "Integrate ftbench into > FreeType's build structure". Thanks for your interest – before you do anything, please read https://lists.nongnu.org/archive/html/freetype-devel/2024-03/msg4.html since the description on https://freetyp

Re: GSOC Proposal guidance

2024-03-22 Thread Werner LEMBERG
> My name is Mubin Ladhani and I want to contribute to your > organization through GSOC so Can I get some guidance on making the > proposal for GSOC for your organization so that my proposal gets > shortlisted. Have a look at https://freetype.org/gsoc.html Werner

Re: FreeType website modernisation

2024-03-21 Thread Werner LEMBERG
> I’ve just created an account on Gitlab: > Username: @coolmanlume Thanks; I've invited you to be a developer of the 'freetype-web' repository. Werner

Re: FreeType website modernisation

2024-03-21 Thread Werner LEMBERG
Hello Manuel, nice to hear from you! > Lately, I stumbled upon the FreeType webpage. I cannot help to > think that its current design does not pay tribute or properly > represent the quality, scale, and impact of this project anymore. Well... :-) > If you agree I would consider working on s

Re: FT_Select_Size

2024-02-25 Thread Werner LEMBERG
>> `available_sizes` is mentioned in the documentation of >> `FT_Select_Size` ??? it seems that you've missed that, so I wonder >> whether you have a suggestion to improve the documentation... > > Personally I would add a get-function to provide this information. > I was also looking for a functi

Re: FT_Select_Size

2024-02-24 Thread Werner LEMBERG
> FT_Select_Size selects a size by an index. > My question now is: how/where can I see what those sizes are? Look at the `available_sizes` array in `FT_Face`; the field `num_fixed_sizes` gives the number of available strikes. `available_sizes` is mentioned in the documentation of `FT_Select_Size

Re: [Inquiry] Auto-fit on monochrome output

2023-11-08 Thread Werner LEMBERG
>> ahh it's on the very legacy display, which is monochrome at 72dpi >> we have no choice but to find out what can be done to improve the >> appearance > > Hand-tuned bitmap fonts. Yeah, and you should additionally use well-hinted Windows fonts that contain support for monochrome rendering. In

Re: [Inquiry] Auto-fit on monochrome output

2023-11-08 Thread Werner LEMBERG
>> Define 'improve hinting'. It's not clear to me what you actually >> want to achieve. > > Currently we are using FT_LOAD_RENDER | FT_LOAD_TARGET_MONO | > FT_LOAD_MONOCHROME and still seeing very bad appearance. So not > sure if I missed anything there in order for the monochrome > character to

Re: [Inquiry] Auto-fit on monochrome output

2023-11-07 Thread Werner LEMBERG
>> No, (good) auto-hinting is not available for monochrome display. > > Does this mean even if I load the glyph with FT_LOAD_FORCE_AUTOHINT, > the autofit algorithm also will not perform any hinting? It will perform hinting but expect very ugly results. > I'm using the TrueType font, any way to

Re: [Inquiry] Auto-fit on monochrome output

2023-11-07 Thread Werner LEMBERG
> I am exploring this FreeType font engine library, am wondering if the > auto-fit(auto-hint) support for monochrome display as well? No, (good) auto-hinting is not available for monochrome display. > I get segmentation fault whenever I use this flag -> > FT_LOAD_FORCE_AUTOHINT > > FT_LOAD_REN

Re: Information Request for FreeType

2023-11-01 Thread Werner LEMBERG
Hello Jennifer, > 1. Is there an organization which sponsors/publishes the project, > or a primary developer who audits the code for potential > vulnerabilities, errors, or malicious code? Y/N There is no organization, but at least two people (Alexei und me) continuously monitor chan

Re: FT Cache Subsystem: Custom caches

2023-10-30 Thread Werner LEMBERG
> I'm trying to use FreeType cache subsystem to render glyphs. I tried > using FTC_SBitCache but I need to modify the outline before > rendering (translate and transform) so I could only use > FTC_ImageCache, modify the outline and render it. > > Is there a way to extend the cache mechanism to c

Re: feedback

2023-09-29 Thread Werner LEMBERG
> I compiled splashutils-1.5.2 (sourceforge) on a Linux Lite 3.8 > 32-bit (frugal install) without any modifications successfully. I > hope, these informations help the developers. Not really. It's still not sufficient. Actually, I think your compiler installation or compilation environment i

Re: Facing very different type of issue after porting freetype

2023-09-22 Thread Werner LEMBERG
> I'm facing some issues after porting. while I'm passing unsigned > char Ubuntu[34816] which is Ubuntu-R.ttf file. By using bin2c > python script i converted into an C array. while is passed this > array to the function i'm getting all those error. [...] Please provide a *complete*, compila

Announcing FreeType 2.13.2

2023-08-25 Thread Werner LEMBERG
FreeType 2.13.2 has been released. It is available from https://savannah.nongnu.org/download/freetype/ or https://sourceforge.net/projects/freetype/files/ The latter site also holds older versions of the FreeType library. See below for the relevant snippet from the CHANGES file. En

Re: Need Help!!Font Family Name is not coming as needed.

2023-08-24 Thread Werner LEMBERG
> Looking more closely at code I think freetype is returning preferred > Family name of font as font family if that is present inside font. > Is there anyway to know if the font name is picked from preferred > Family name or Family only. No, there isn't. Why do you need that? You can either us

Re: Need Help!!Font Family Name is not coming as needed.

2023-08-23 Thread Werner LEMBERG
> I am using FT_FaceRec_ object to get the font family name in my > code. But not getting the correct (entire font name as family name) > for few fonts. For e.g. Arial Black, Freetype is returning font > name as Arial and Style as Black. On further looking at code I > found it goes into the che

Re: Starting as a FreeType Contributer

2023-08-11 Thread Werner LEMBERG
[Please always answer to the list, not to me personally.] > I can do work based on C, I wanna contribute to the UI and UX of > FreeType as well. UI? UX? What are you talking about? FreeType is a low-level *library*! Its API is more or less unchanged for the last 20 years. Note that 'I wan

Re: Starting as a FreeType Contributer

2023-08-11 Thread Werner LEMBERG
Hello Harsh, > it's Harsh from India, i'm a student and I believe in Contributing > while Learning Approach. I have gone through your documentation and > I think I can contribute to the Efficiency and portablability in the > program. I wanna do it with the C language. welcome to FreeType! W

Re: Font Rendering: Multiple FT_Faces and baselines

2023-07-19 Thread Werner LEMBERG
> I'm aware that when drawing text, all glyphs should be aligned on a > single baseline. The example I've given does not do this; it aligns > the text on different font's baseline, causing the inconsistent > look. This is what I told you in the very beginning: Your logic to position the glyphs v

Re: Font Rendering: Multiple FT_Faces and baselines

2023-07-19 Thread Werner LEMBERG
[It would be nice if you could use a decent e-mail writer that creates readable plain-text messages (which we prefer on this mailing list), without completely garbling quoted material.] > > This looks like a logic error in your program. If I say `ftdump > > cjk.otf` I get > > > > ``` > >

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

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 reprod

Re: Freetype Linux problem with 64 bit program.

2023-07-13 Thread Werner LEMBERG
> I am running the attached program in linux as 64 bit program. Ouch! You are accessing internal structures of FreeType, which makes your code bound to a particular FreeType version and thus highly unportable. We basically can't give user support for that, sorry. Note also that 2.10.0 is four

Announcing FreeType 2.13.1

2023-06-24 Thread Werner LEMBERG
FreeType 2.13.1 has been released. It is available from https://savannah.nongnu.org/download/freetype/ or https://sourceforge.net/projects/freetype/files/ The latter site also holds older versions of the FreeType library. See below for the relevant snippet from the CHANGES file. En

Re: About freetype2 switch face_index

2023-06-23 Thread Werner LEMBERG
> Is there any other function to switch the face_index when a font > contains multiple fonts, besides specifying the face_index when > creating the face? It depends. In TrueType Collections, fonts with different font indices might be really completely different fonts, so you can't avoid creatin

Re: Download page doesn't allow to download freetype packages

2023-06-22 Thread Werner LEMBERG
> There is no positive changes for me. [...] Sorry to hear that. I suggest you try a GNU mirror; see the list at https://www.gnu.org/prep/ftp.html Werner

Re: Download page doesn't allow to download freetype packages

2023-06-22 Thread Werner LEMBERG
> This page https://download.savannah.gnu.org/releases/freetype/ is > opening but nothing can be downloaded. Maybe a temporary glitch? I've just tried, and it seems to work as expected. Werner

Re: bsdf rasterizer fails when bitmap is empty

2023-06-08 Thread Werner LEMBERG
Hello Sebastian, > The order of these two validations should be changed. If bitmap is > empty, then there is nothing to render => early return. Yep, should be fixed now in the git repository, please test! Werner

Re: FreeType 2.13.1 Release & CVE 2023-2004 Fix

2023-05-29 Thread Werner LEMBERG
> I'm also concerned about the reported vulnerability CVE 2023-2004. This is a false alarm; the CVE will be revoked soon. See https://gitlab.freedesktop.org/freetype/freetype/-/issues/1232 > When will 2.13.1, which fixes this, be released? As soon as my time permits, I guess in the middle

Re: COLR V1 Support & FT_Load_Glyph

2023-05-17 Thread Werner LEMBERG
>In version 2.13.0, is FT_Load_Glyph supposed to be able to load >color glyphs using the COLR V1 format? No, it isn't. We have an ongoing discussion on that (and related issues) at https://gitlab.freedesktop.org/freetype/freetype/-/issues/1229 Please chime in if you like. >If n

Re: Variable Font and FT_Load_Sfnt_Table

2023-05-09 Thread Werner LEMBERG
> If variable font is set using FT_Set_Var_Design_Coordinates(ftFace, > ... ) or FT_Set_Named_Instance(ftFace, ...) and then call to > FT_Load_Sfnt_Table(ftFace,...) is made, does it return table data > specific to variation set on ftFace or whole data of variable font ? No, as Lawrence answered

Re: Hinting regression in Ubuntu 23.04

2023-05-04 Thread Werner LEMBERG
> Below 12ppem, essentially *all* fonts, whether they are serif or > sans-serif, look exactly the same I mean: with bi-level rendering. Werner

Re: Hinting regression in Ubuntu 23.04

2023-05-04 Thread Werner LEMBERG
> [...] I also think nothing beats a well hinted font @9 points on a > full-HD laptop screen which are still plenty around? For my old eyes, this is too crisp, too much contrast. I much prefer anti-aliased subpixel hinting. It's also more 'natural', that is, you need less distortion from the re

Re: Hinting regression in Ubuntu 23.04

2023-05-04 Thread Werner LEMBERG
> I'm curious if they have motivation to make bad fonts with no > hinting?  does it somehow help when/if anti-aliasing is turned on? The relation between cost and benefit is no longer given: The percentage of people who actually use a low-DPI screen together with fonts rendered as monochrome is v

Re: Hinting regression in Ubuntu 23.04

2023-05-04 Thread Werner LEMBERG
>> This is B/W monochrome rendering with full hinting. As can be >> seen, the result is just fine. I'm quite confident that the >> problem is *not* with FreeType. > > This is a regression from 22.10 to 23.04 and Ubuntu(-mono) has seen > some changes since 22.10, so let's compare the same font,

Re: Hinting regression in Ubuntu 23.04

2023-05-03 Thread Werner LEMBERG
> Ubuntu 23.04 has a regression in hinted font rendering and possibly > RGB subpixel rendering. I already tried replacing libfreetype with > the last known good version of 22.10 and compiled 2.13.0 to see if > that made any improvements but it didn't (as far as I can tell). I don't use Ubuntu, so

Re: Need Help!!Getting Different glyph_locations in freetype 2.0.9 and 2.10.0

2023-04-28 Thread Werner LEMBERG
> I need help in knowing how we are getting different glyph_locations > in freetype version 2.0.9 and 2.10.0. I don't have time to analyze this in detail, but, as Lawrence observed, you *must not* rely on internal implementation details of FreeType. > I understand both are very different version

Fw: How to have sharp fonts?

2023-02-27 Thread Werner LEMBERG
Can someone help this guy, please? Werner --- Begin Message --- Hello werner I have problem with all linux distros about fonts generally, fonts are very smooth or fuzzy and it hurts my eyes when i read more of the texts , but on windows is very pleasurable to read texts. Is there any patch

Deactivating the mailing list's digest feature

2023-02-12 Thread Werner LEMBERG
Folks, within the next days we are going to deactivate the list's digest feature. The reason is that it splits threads, which makes it both hard to reply and to follow the order of the replies. A recent example on the `freetype-devel` list is the subject line ``` FreeType INSTCTRL behavior `

Announcing FreeType 2.13.0

2023-02-09 Thread Werner LEMBERG
FreeType 2.13.0 has been released. It is available from https://savannah.nongnu.org/download/freetype/ or https://sourceforge.net/projects/freetype/files/ The latter site also holds older versions of the FreeType library. See below for the relevant snippet from the CHANGES file. En

Re: License question

2023-02-06 Thread Werner LEMBERG
> Hello, I was wondering if instead of a disclaimer, a way to download the > license to view it is alright? If you are developing an online application, this should be fine – I guess you provide a button that says 'disclaimer', and if the user presses this button, the license gets downloaded and

Re: [HarfBuzz] Getting character bitmap

2023-01-15 Thread Werner LEMBERG
> I suggest that you go through the FreeType tutorial at > > https://freetype.org/freetype2/docs/tutorial/index.html > > It comes with examples that you can adapt to your needs. I forgot to mention the FreeType demo programs. You can download a tarball from https://download.savannah.gnu.

Re: [HarfBuzz] Getting character bitmap

2023-01-15 Thread Werner LEMBERG
> Any help is appreciated in code below to convert the glyph to 0 > and 1 based bitmap as shown at the end. >> >> Since I'm new to C, I don't quite know how to connect function >> Char_Index output to FT_Bitmap. I'm new to reading such >> C documentation. I suggest that you go through the FreeTy

Re: Variable Fonts

2023-01-09 Thread Werner LEMBERG
> Now that I researched more, I cannot cache glyphs of different > variations inside the cache manager unless I provide a different > face_id for each variation and only then my system works correctly. > To be honest this is a flaw in the cache subsystem of the freetype > library. Please open an

Re: Variable fonts

2023-01-09 Thread Werner LEMBERG
> I am currently using the multiple master feature of freetype library > to support the variable fonts. There is an issue that I am facing > currently. For an example, consider that I am making letter "A" > bold using the weight axis but in my system I want to be able to > uniquely identify the

Re: ftjam issue in ArchLinux

2022-12-20 Thread Werner LEMBERG
Hello David, > I had a lot of trouble getting FT-Jam to do a proper incremental > build on my ArchLinux system. [...] We no longer support Jam. It wasn't used by any active developer (and probably by nobody else), and the changes specific to `ftjam` are ancient, unmaintained, and very likely

Re: How to access to an AxisRecord in the Stat table?

2022-11-17 Thread Werner LEMBERG
> Hi,I there a way to get the AxisRecord in the Stat table? No, there isn't: FreeType has no extra support for this table. You would have to load the table with `FT_Load_Sfnt_Table` and parse it by yourself. Note, however, that I strongly recommend to *not* doing this. You should rather use a

Re: Free type2 software font engine

2022-11-14 Thread Werner LEMBERG
> Good afternoon, I was wondering were could I find the “free type 2 > software font engine “ it for a 2010 bmw 535 I thanks It's not clear to me how you actually want to use a font rendering engine for a BMW car, but here is a link to our website. https://freetype.org Werner

Re: non-antialiased font configuration

2022-11-02 Thread Werner LEMBERG
> Ed, I have added monochrome support to cooledit. > See the 'devel' branch: > https://github.com/paulsheer/cooledit/tree/devel Nice! Werner

Re: non-antialiased font configuration

2022-10-28 Thread Werner LEMBERG
> Great info thanks again Werner, keeping this in the realm of > freetype/ftview, what option might I pass to ftview to get the > ftview rendering looking like the amber terminal in the attachment? > Again, I'm trying to avoid antialiasing, particularly in small > console/monospaced consoles. Didn

Re: non-antialiased font configuration

2022-10-28 Thread Werner LEMBERG
> Thanks Werner,  the images were embedded/smime, Nope, see https://lists.gnu.org/archive/html/freetype/2022-10/msg5.html > but they're attached to this email. Now they are, thanks. > Fonts are antialiased in ftview, is there a way to have ftview > render fonts without antialiasing? As

Re: non-antialiased font configuration

2022-10-27 Thread Werner LEMBERG
> I've spent about a day trying to make the lower window (Kubuntu > 22.04 KDE), look like the top window (Kubuntu 18.04 KDE) [...] First of all, there were no images attached to your mail. Secondly, you are barking up the wrong tree, sorry: FreeType is a very low-level library, and all the poss

improved (SVG) images for 'FreeType Glyph Conventions'

2022-10-10 Thread Werner LEMBERG
As the title says. Enjoy! Werner

Re: glyph diagram

2022-10-06 Thread Werner LEMBERG
An answer to a mail from the distant past :-) >> Could you contribute SVG images of the two graphics to >> FreeType? > > OK, I have changed the output format of my script to SVG (Cairo > seems to do a good job of SVG output, at least in this case), and > split out the two diagrams into separat

GSoC project `ftinspect` now in master

2022-10-03 Thread Werner LEMBERG
Folks, I've just merged Charlie's GSoC project `ftinspect` into master – enjoy! `ftinspect` is a essentially a Qt-based application that merges and extends the functionality of most FreeType demo programs (`ftview`, `ftgrid`, etc.) Charlie did a great job, and it was a pleasure to work with hi

Re: Google's NotoColorEmoji-Regular.ttf not rending

2022-09-21 Thread Werner LEMBERG
> Thanks, ftview is a great help. However it does not display > NotoColorEmoji-Regular.ttf Well, this font contains a 'COLR' v1 table, which `ftview` doesn't support – you have to render the layers by yourself.[*] Note that 'COLR' v1 support in FreeType is not complete yet (but Dominik is working

Re: Google's NotoColorEmoji-Regular.ttf not rending

2022-09-19 Thread Werner LEMBERG
> > I have had great success with Google's older NotoColorEmoji.ttf and > NotoEmoji-Regular.ttf released by Google in 2019. > > However they have since updated their fonts. They now have a font > NotoColorEmoji-Regular.ttf They have? Looking at https://github.com/googlefonts/noto-emoji/blob

Re: Possible Wording Error on FreeType Tutorial 1 Page

2022-09-14 Thread Werner LEMBERG
> Please refer to your following page: FreeType Tutorial / > I > > Please confirm/explain if the part that I’ve highlighted in Red > below, is in error? Please don't use colours for markings. On 'freetype@nongnu.org' we encourage everybod

Re: Subpixel offset for glyphs rendering

2022-09-05 Thread Werner LEMBERG
> I'm using FT_Outline_Translate(), though I'm still not sure if I'm > supposed to pass the translation vector as pixels or font units. Pixels (in 26.6 format), since `FT_Load_Glyph` converts the glyph from the font space to the user device space (except if you specify `FT_LOAD_NO_SCALE`). > My

Re: Subpixel offset for glyphs rendering

2022-09-02 Thread Werner LEMBERG
Sorry for the late reply. > Is there a way to make freetype rasterize a glyph offsetted by a > certain amount of pixels? Should I use the FT_Set_Transform() API, > in particular the delta parameter, before calling FT_Render_Glyph()? Yes, this should work. Werner

Re: Help with SDF Rendering

2022-08-27 Thread Werner LEMBERG
>I would like to get more information on how to set the spread for >SDF Rendering. [...] Please have a look at the `ftsdf` demo program, which should answer (most of) your questions. https://gitlab.freedesktop.org/freetype/freetype-demos/-/blob/master/src/ftsdf.c Werner

Re: Font rendering question - unifont-14.0.04.ttf

2022-08-06 Thread Werner LEMBERG
> Over at Python Pillow, we've had a user raise an issue about the way > that Pillow is rendering characters from unifont-14.0.04.ttf - > https://github.com/python-pillow/Pillow/issues/6421. I took a look, > and concluded that Pillow wasn't doing anything special, but just > showing what our dep

Re: [URGENT] Confirmation of Fixes for CVE's in 2.12.1

2022-06-29 Thread Werner LEMBERG
> I arrived at the conclusion because I was expecting a mention of > CVE-2022-27404 and the change that fixed it. [...] Thanks for the explanation. We usually don't mention CVEs in release messages except someone explicitly tells us. In most cases CVEs are made public much later than the fixe

Re: [URGENT] Confirmation of Fixes for CVE's in 2.12.1

2022-06-29 Thread Werner LEMBERG
> Can you confirm which or if all the following fixes/patches/commits > that resolve issues and CVE's below are incorporate into latest > available version, 2.12.1? [...] They are, because... > I see that version 2.12.1 was release 1 month ago [...] and that > these fixes were committed 3 mont

Re: release 2.12.1 causes fontconfig to fail to build (with 2.11.1 fontconfig builds OK)

2022-05-09 Thread Werner LEMBERG
> Ah. User error, although it did work with 2.11.1 By pure luck. The allowed arguments for `--with-zlib` didn't change since FreeType version 2.5.3, released eight years ago. Werner

Re: release 2.12.1 causes fontconfig to fail to build (with 2.11.1 fontconfig builds OK)

2022-05-08 Thread Werner LEMBERG
> > This looks like > > > > https://gitlab.freedesktop.org/freetype/freetype/-/issues/1146 > > It seems perhaps so. > > I don't know anything about FT_CONFIG_OPTION_SYSTEM_ZLIB nor how or > when to use it, so advice would be welcomed. Looking again at your original e-mail I now see that you

Re: release 2.12.1 causes fontconfig to fail to build (with 2.11.1 fontconfig builds OK)

2022-05-07 Thread Werner LEMBERG
> multiple definition of `get_crc_table'; > multiple definition of `crc32_z'; > multiple definition of `crc32_combine64'; > ... This looks like https://gitlab.freedesktop.org/freetype/freetype/-/issues/1146 Werner

Announcing FreeType 2.12.1

2022-05-01 Thread Werner LEMBERG
FreeType 2.12.1 has been released. It is available from https://savannah.nongnu.org/download/freetype/ or https://sourceforge.net/projects/freetype/files/ The latter site also holds older versions of the FreeType library. See below for the relevant snippet from the CHANGES file. En

Re: glyph diagram

2022-04-29 Thread Werner LEMBERG
>> Do you know where I might find a 600 dpi version of the freetype >> glyph metrics? > > Presumably you mean the diagrams here > . > > How does the enclosed look? It was generated with a Python script I > threw together this af

Re: glyph diagram

2022-04-28 Thread Werner LEMBERG
> The book includes the diagrams on glyph metrics from the freetype > documentation but the publisher has asked for a higher resolution > diagram. Which one? Link, please. > Do you know where I might find a 600 dpi version of the freetype > glyph metrics? No, I don't – and David Turner, who c

Re: Running ftview does not bring up a GUI

2022-04-12 Thread Werner LEMBERG
> This is probably a silly question, and I may not have pointed FreeType > demo programs correctly to the X11 libraries. It seems so, because... > ``` > ./ftview 10 font.ttf > ``` ... this is the right call. > When I run ftview or ftgrid this way, no GUI pops up. What am I > missing? Some

Re: how to render bdf font?

2022-03-31 Thread Werner LEMBERG
Hello Mr. Heaven :-) > Follow the tutorial, i can use freetype to render the text of ttf > font. Now i have a issue, i wanna render the text of bdf font, how > can i do? please help me. I suggest that you look at the FreeType demo programs like `ftview`, which handles all possible font forma

Re: how to render bdf font?

2022-03-31 Thread Werner LEMBERG
>> render the text of bdf font, how can i do? please help me. > > BDF is a font "source" format, FreeType supports BDF natively. > to render it compile it to PCF format. Well, PCF only handles a subset of what BDF can do. Werner

Re: Announcing FreeType 2.12.0

2022-03-31 Thread Werner LEMBERG
>> It is available from >> http://savannah.nongnu.org/download/freetype/ >> or >> http://sourceforge.net/projects/freetype/files/ > > (Maybe use HTTPS URLs to authenticate the hosts, and to save one > redirect in the SF case?) D'oh. Fixed in my announcement template, thanks. > Isn’t

Announcing FreeType 2.12.0

2022-03-31 Thread Werner LEMBERG
FreeType 2.12.0 has been released. It is available from http://savannah.nongnu.org/download/freetype/ or http://sourceforge.net/projects/freetype/files/ The latter site also holds older versions of the FreeType library. See below for the relevant snippet from the CHANGES file. Enjo

Re: freetype.org domain

2022-02-08 Thread Werner LEMBERG
Hello Daniel, >> I'm from the X.org board of directors, and we're going through all >> the domains that freedesktop.org infrastructure is hosting. One of >> them is freetype.org, and we got a few questions: >> >> - who's the current contact and holder? In case we need that for >> moving thi

Re: emoji modifier support

2022-01-21 Thread Werner LEMBERG
> We would like to implement the colored font feature of freetype to > manage colored emoji. > > We already have a POC with colored emoji, but we have seen that some > of the glyph in our font (Segoe UI Emoji) are associated with a skin > tone modifier base on Fitzpatrick scale. > > We don't re

Re: Recalculate glyph metrics for variable fonts

2022-01-04 Thread Werner LEMBERG
> I am trying to adjust the weight of a variable font, Source Code Pro > in particular (https://fonts.google.com/specimen/Source+Code+Pro). > > I simply call FT_Set_Var_Design_Coordinates with the appropriate > parameters, and it basically works, however, it seems to break all > the glyph metrics

Announcing FreeType 2.11.1

2021-12-02 Thread Werner LEMBERG
FreeType 2.11.1 has been released. It is available from http://savannah.nongnu.org/download/freetype/ or http://sourceforge.net/projects/freetype/files/ The latter site also holds older versions of the FreeType library. See below for the relevant snippet from the CHANGES file. Enjo

Re: GSOC 2022

2021-11-24 Thread Werner LEMBERG
Hello Satya, > I want to contribute to your organization. what is the procedure to > set up your project. What steps should I follow? Please look up the mailing list archive; this and other related GSoC questions have been answered many times. https://lists.nongnu.org/archive/html/freetyp

Re: Freetype 2.9

2021-11-23 Thread Werner LEMBERG
> I am trying to compile OpenJDK 8u777 64-bit on Solaris. To do this I > need freetype. Please always try the lastest FreeType version. If compilation still fails, please retry with HEAD of current git. Version 2.9 is more than three years old; we probably have fixed this bug meanwhile (if it

Re: listing the supported file formats

2021-11-21 Thread Werner LEMBERG
> Hello, I've recently started doing more in-depth development with > Freetype2 and I was wondering if there was a way to list, or build a > list of, the file formats supported by freetype or any extended > modules when supplying a filepath to `FT_New_Face()`. > > If freetype doesn't support a f

Re: [External] Aw: Re: Re: Re: Re: Native TTF name sometimes contains crap

2021-10-25 Thread Werner LEMBERG
> We want to create fonts using pixelsize of the order of 14, which > would eventually be displayed on DPI 114 display device. However, > the fonts are not looking smoother at this pixel size. > > Any special settings that we need enable make the fonts smoother? > Like sub-pixel rendering enabl

Re: Convert CID to TTF

2021-09-27 Thread Werner LEMBERG
> I am wondering if it is possible to use freetype to convert CID > fonts to TTF fonts? I have been skimming the documentation, but > without luck so far. This is not possible. Try a font editor like FontForge. Werner

Re: Functions in ftcolor.c not defined

2021-09-17 Thread Werner LEMBERG
> I am heading for an issue when compiling. Linker shows me this > status: undefined reference to 'FT_Palette_Set_Foreground_Color' > (and so for other functions). The function is known to my project > from the header file included but the function body is missing. I > can see ftcolor.o in /ob

Re: Aw: Re: Re: Re: Re: Re: Re: Native TTF name sometimes contains crap

2021-09-17 Thread Werner LEMBERG
Sorry for the late reponse; I was travelling for a longer time with only sporadic time for working on the computer. > OK, so we are back at the very beginning:for this specific font, > FT_Get_Sfnt_Name() does NOT return a valid UTF16-BE representation > of the name "黑体". It seems to work properl

Re: FT_Render_Glyph returning error INVALID_OUTLINE

2021-09-17 Thread Werner LEMBERG
> Well, you loop from 16 to 35, mapping those values to itself, then > calling `FT_Get_Char_Index` to get glyph indices. However, all cmaps > in the font start with character code 0x20 (decimal 32) followed by > character code 0x24 (decimal 36). Consequently, you get glyph index 0 > for all value

Re: FT_Render_Glyph returning error INVALID_OUTLINE

2021-09-17 Thread Werner LEMBERG
> Using the upgraded library I'm trying to convert the glyph image to > FT_GLYPH_FORMAT_BITMAP format using FT_RENDER_MODE_MONO rendering > mode, but the function FT_Render_Glyph is returning error > INVALID_OUTLINE (Error#:20). > > I have attached the font & sample test program for which it is

  1   2   3   4   5   6   7   8   9   10   >