Re: How can use freetype to render Mongolia font?

2021-01-16 Thread Lawrence D'Oliveiro
On Sun, 17 Jan 2021 11:21:35 +0800, Xuefeng Mu wrote: > can't render Mongolia font, or where is my fault? Let me suggest that you make things easier for yourself by using a text-shaping library like HarfBuzz .

Re: emoji colorized gyphs

2021-04-06 Thread Lawrence D'Oliveiro
On Tue, 6 Apr 2021 09:03:08 +0200, Anthony Rouaux wrote: > 1\ Can you point me to a public font file that you used to do your > implementation of that feature? Google’s Noto Color Emoji font is one I have used. > 2\ Do you have an simple example of code that I could use as a > starting point.

Re: OTF font containing multiple faces

2021-04-15 Thread Lawrence D'Oliveiro
On Thu, 15 Apr 2021 09:57:18 +0200 (CEST), Werner LEMBERG wrote: > > FT_Open_Face takes a face_index value, can anyone point me to an OTF > > font that contains more than one face > > Look at the Noto CJK fonts, for example > > NotoSerifCJK-Regular.ttc > > Inspite of having the extension `.

Re: Does Freetype work best with gamma 2.2, and how does it interact with KDE gamma setting?

2021-05-04 Thread Lawrence D'Oliveiro
On Tue, 04 May 2021 10:00:05 +0200, Allan Sandfeld Jensen wrote: > Freetype doesn't interact with gamma on its own. I would hope that would be true of all rendering engines, e.g. FreeType, Cairo, Blender Cycles etc. Gamma and colour profiling are issues for on-screen display, image input and imag

Re: [Freetype] Font files and vertical text

2021-05-14 Thread Lawrence D'Oliveiro
On Sat, 15 May 2021 15:16:25 +0900, suzuki toshiya wrote: > The modern applications trying to support the > CJK vertical writing mode use more complicated frameworks, like > HarfBuzz. Too many times I see questions on this list from people trying to do complicated font rendering directly in FreeT

Re: [Freetype] Font files and vertical text

2021-05-16 Thread Lawrence D'Oliveiro
On Sun, 16 May 2021 07:35:04 + (UTC), Werner LEMBERG wrote: > On Sat, 15 May 2021 18:45:55 +1200, Lawrence D'Oliveiro wrote: >> >> Too many times I see questions on this list from people trying to do >> complicated font rendering directly in FreeType, when they

Re: [Freetype] Font files and vertical text

2021-05-16 Thread Lawrence D'Oliveiro
On Sun, 16 May 2021 08:06:23 + (UTC), Werner LEMBERG wrote: > On Sun, 16 May 2021 20:00:20 +1200, Lawrence D'Oliveiro wrote: >> >> You want me to submit an item for the FAQ along the lines of “How do >> I do advanced/language-specific text layout?”? > > Mhmm,

Re: how update the website for the complex layout

2021-05-16 Thread Lawrence D'Oliveiro
On Sun, 16 May 2021 17:31:17 +0900, suzuki toshiya wrote: > Yet I don't have a good answer to a person saying "I don't care > the right-to-left scripts, or the complex glyph shaping like various > Indic scripts, I understand they need very complicated technology. > But I just want the support for

Re: [Freetype] Font files and vertical text

2021-05-16 Thread Lawrence D'Oliveiro
OK, how about this as a starting point: Q: How do I render a line of text in FreeType? A: FreeType is a very low-level rendering engine. All it knows how to do is render individual glyphs and return metrics for them. Arranging glyphs into words and lines is best left to a more complete 2D graphic

Re: how update the website for the complex layout

2021-05-16 Thread Lawrence D'Oliveiro
On Sun, 16 May 2021 21:30:25 +0900, suzuki toshiya wrote: > BTW, I wonder whether current last answer referring Pango should be > improved by referring HarfBuzz. Yes, Pango is still essential part of > GTK+, but HarfBuzz is becoming more general framework broader than > GTK+. How do you feel? Mys

Re: Font files and vertical text

2021-05-16 Thread Lawrence D'Oliveiro
On Sun, 16 May 2021 11:05:46 -0700, Harold Hallikainen wrote: > 1. On most systems, the vertical position of the column of text is > based on the top, bottom, or center of the bounding box for the > rendered column of text. I think it SHOULD be based on the vertical > origin of the first character

Re: how update the website for the complex layout

2021-05-18 Thread Lawrence D'Oliveiro
On Wed, 19 May 2021 04:58:08 + (UTC), Werner LEMBERG wrote: > HarfBuzz is a text shaping library; it is not meant to actually do > text layout. Do you mean it is lacking things like recognizing word breaks and line breaks? Because it can lay out a line of text pretty well.

Re: how update the website for the complex layout

2021-05-19 Thread Lawrence D'Oliveiro
On Wed, 19 May 2021 14:04:34 -0700, Harold Hallikainen wrote: > And in my application (cinema subtitles) a UTF-8 string is passed in > with an output of horizontal or vertical text. There are XML > attributes to the Text element that indicate the direction (left to > right, top down, right to left

Re: FreeType ANDROID ndk installation

2021-05-21 Thread Lawrence D'Oliveiro
On Fri, 21 May 2021 15:36:01 +0200, GoldSpark wrote: > For 2 days now I am trying to get your library to work with android > ndk project. I absolutely have no idea how to make it work. Maybe you are better off sticking with Android’s built-in text/graphics-rendering APIs.

Re: Compiling freetype without make and cmake

2021-06-29 Thread Lawrence D'Oliveiro
On Tue, 29 Jun 2021 06:36:43 -0700, honey wrote: >However, PlatformIO uses its own build system, which won’t play > nice with make and cmake. Note that CMake isn’t actually a build system, it’s a wrapper around other build systems. Think of it more as a “meta-build” system. It generates GNU M

Re: render 3 glyphes into the one buffer

2021-08-03 Thread Lawrence D'Oliveiro
On Tue, 03 Aug 2021 15:15:39 +0700, Vitaliy Fadeev wrote: > Question 1: Possible to render glyphs directly into te one big bitmap > ? This is what higher-level graphics libraries like Cairo do for you. Using such a library is easier than trying to figure it out ho

Re: render 3 glyphes into the one buffer

2021-08-03 Thread Lawrence D'Oliveiro
On Tue, 03 Aug 2021 17:02:36 +0700, Vitaliy Fadeev wrote: > Lawrence D'Oliveiro, say, please: Cairo preallocate one big bitmap, > then render each char into the one preallocated bitmap, or Cairo > render each glyph and then do copy bitmap into the surface ? It has a built-in cach

Re: Incompatible versions of libfreetype.6.dylib

2021-10-21 Thread Lawrence D'Oliveiro
On Tue, 19 Oct 2021 00:56:01 -0400, Samuel Dupree wrote: > I'm running Python 3.8.8 under the Anaconda distribution ver. > custom on a Mac Pro (2019) desktop running Mac OSX ver. 11.6. > > I'm getting the following error message: > > ... >   Reason: Incompatible library version: >

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

2021-10-25 Thread Lawrence D'Oliveiro
On Mon, 25 Oct 2021 07:32:07 +, Boppe, Balakrishna (D&G COE) wrote: > We want to create fonts using pixelsize of the order of 14, which > would eventually be displayed on DPI 114 display device. If you want a font hand-tuned to look good at just one size, make it a bitmap font.

Re: Glyph bitmap is 3x too big?

2021-10-25 Thread Lawrence D'Oliveiro
On Mon, 25 Oct 2021 22:52:54 +0200, Andy wrote: > I do example from madig's tutorial. > Both metod, first FT_Get_Char_Index/FT_Load_Glyph/FT_Render_Glyph > second: FT_Load_Char > next I FT_Bitmap draw on wxWidgets image and next wxWidgets DC/ > GIve me bitmap for wisth 3 letters instead one and be

Re: Trouble installing with make on Ubuntu 20.04 (WSL 2), /bin/sh: 2: ./configure: not found

2021-11-24 Thread Lawrence D'Oliveiro
On Wed, 24 Nov 2021 20:28:45 +, Naphat Amundsen wrote: > cd builds/unix; \ > ./configure > /bin/sh: 2: ./configure: not found > make: *** [builds/unix/detect.mk:91: setup] Error 127 If you look at the development tree

Re: glyph diagram

2022-04-29 Thread Lawrence D'Oliveiro
On Thu, 28 Apr 2022 22:24:32 +0200, Dave via FreeType users wrote: > 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 gene

Re: glyph diagram

2022-05-01 Thread Lawrence D'Oliveiro
On Fri, 29 Apr 2022 15:47:17 + (UTC), Werner LEMBERG wrote: > 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 se

Re: Proper way of rotating glyphs

2022-05-06 Thread Lawrence D'Oliveiro
On Fri, 06 May 2022 13:37:01 +0300, Василий Троцкий via FreeType users wrote: > Now i am using FreeType library to fill texture atlas with font > glyphs in order to render strings as a sprites with texture from > atlas. Easier to use a proper graphics library, like Cairo, to manage all this.

Re: How does freetype get the "right" family name

2022-05-26 Thread Lawrence D'Oliveiro
On Thu, 26 May 2022 15:53:13 -0400, Moi15 Moi wrote: > I am trying to understand how does freetype determine what is the > "right" family name. Is this code helpful? (From the routine sfnt_load_face in src/sfnt/sfobjs.c): face->root.family_name = NULL; face->root.style_name = NULL;

Re: Kerning information related query.

2022-06-14 Thread Lawrence D'Oliveiro
On Tue, 14 Jun 2022 13:10:50 +, Boppe, Balakrishna (D&G COE) wrote: > I would like to use the kerning information(offline) to perform the > rendering of text(run time) HarfBuzz does all this for you, and more.

Re: [External] Re: Kerning information related query.

2022-06-15 Thread Lawrence D'Oliveiro
On Wed, 15 Jun 2022 03:49:36 +, Boppe, Balakrishna (D&G COE) wrote: > For some reason, the link provided below is not opening for me. > > HarfBuzz >

Re: Query on Generation of halo around glyphs.

2022-06-22 Thread Lawrence D'Oliveiro
On Thu, 23 Jun 2022 03:29:27 +, Boppe, Balakrishna (D&G COE) wrote: > Using freetype APIs, any recommendation on how to generate halo, of a > given width, around each glyph, using Freetype APIs ? Use Pixman, perhaps .

Re: [External] Re: Query on Generation of halo around glyphs.

2022-06-22 Thread Lawrence D'Oliveiro
On Thu, 23 Jun 2022 04:45:16 +, Boppe, Balakrishna (D&G COE) wrote: > I am looking for something where I can generate the halo at run time > and not at the design time(offline). Run the code at your “run time” (whatever that means), it’s your choice.

Re: Error in make process

2022-07-08 Thread Lawrence D'Oliveiro
On Fri, 8 Jul 2022 19:16:25 +0800, 贾慧阳 wrote: > cannot find -lpng15 libpng-dev not installed?

Re: Halo Glyphs generation query

2022-11-17 Thread Lawrence D'Oliveiro
On Thu, 17 Nov 2022 15:27:45 +, Boppe, Balakrishna (D&G COE) wrote: > Can someone please help or provide any guidance on how to get halo > effect around each glyph generated by Freetype . Something like this , perhaps?

Re: [External] Re: Halo Glyphs generation query

2022-11-17 Thread Lawrence D'Oliveiro
On Fri, 18 Nov 2022 02:25:45 +, Boppe, Balakrishna (D&G COE) wrote: > I am not able to access " > https://www.deviantart.com/default-cube/art/Text-Effect-566875799"; > > I get this error! > 403 ERROR > The request could not be satisfied. Maybe try it from a regular Internet connection?

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

2023-04-26 Thread Lawrence D'Oliveiro
On Wed, 26 Apr 2023 13:15:39 +, Jain, Ankit wrote: > ... we are using these location > to write the data in post script file as post script has limitation > in writing the number of bytes ... Do you have to write PostScript files? How are these being consumed? By a printer? By another graphic

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

2023-04-28 Thread Lawrence D'Oliveiro
On Wed, 26 Apr 2023 15:36:38 +, Jain, Ankit wrote: > Can somebody help me in getting those old values with new freetype > or some other suggestion. I think your life would be a lot easier if you stopped making assumptions about the internal implementation of FreeType. > The information conta

Re: Variable Font and FT_Load_Sfnt_Table

2023-05-09 Thread Lawrence D'Oliveiro
On Wed, 10 May 2023 01:58:24 +, Rajeev Pahuja via FreeType users wrote: > 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 variati

Re: [FT_Get_Postscript_Name] Get the corresponding platform ID and language ID

2023-06-16 Thread Lawrence D'Oliveiro
On Fri, 16 Jun 2023 18:47:45 -0400, Moi15 Moi wrote: > Is there a way to know what is the platform ID and the language ID of > the postscript name given by FT_Get_Postscript_Name > > ? I didn’t think P

Re: Freetype Linux problem with 64 bit program.

2023-07-10 Thread Lawrence D'Oliveiro
On Mon, 10 Jul 2023 14:04:19 +, Jain, Ankit wrote: > The information contained in this message is proprietary and/or > confidential. Just a note that, no it isn’t.

Re: Font Rendering: Multiple FT_Faces and baselines

2023-07-19 Thread Lawrence D'Oliveiro
On Thu, 20 Jul 2023 01:03:54 +, takase1121 via FreeType users wrote: > ... calculate an "average" baseline and align to that ... Or align to the midpoints of the overall font glyph boxes (including font ascent and font descent). That may be a suitable compromise.

Re: [Inquiry] Auto-fit on monochrome output

2023-11-08 Thread Lawrence D'Oliveiro
On Wed, 8 Nov 2023 16:27:03 +0800, Jm Moon wrote: > 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.

Re: Workaround for setjmp/longjmp in WASM Builds

2024-09-13 Thread Lawrence D'Oliveiro
On Sat, 14 Sep 2024 01:45:31 -0400, O H wrote: > ... I was wondering if anyone has any suggestions on working around using > setjmp/longjmp in freetype. Last I checked, FreeType doesn’t use setjmp/longjmp. Not in its public API, anyway.

[ft] Python3 Language Binding

2015-02-11 Thread Lawrence D'Oliveiro
There seem to have been a number of attempts at implementing a Python binding for FreeType. Let me offer my effort: . What’s good about this one: * High-level Pythonic wrapper classes (that means you never have to explicitly free anything) * High-level Vec

Re: [ft] Python3 Language Binding

2015-02-12 Thread Lawrence D'Oliveiro
On Thu, 12 Feb 2015 07:04:45 +0100 (CET), Werner LEMBERG wrote: > Please provide a patch for > > http://freetype.org/developer.html#language-bindings > > so that I can add it (in case you think that it is mature enough to be > mentioned there). I am the only one using it so far, since I only

[ft] python_freetype Design: Vector & Matrix Operations

2015-02-12 Thread Lawrence D'Oliveiro
Python has powerful operator-overloading capabilities, implemented in a much simpler way than, say, C++. It makes sense to take advantage of these where it can be useful in a language binding. This is what I did in python_freetype . To multiply two matrices

[ft] python_freetype Design: Outline Objects

2015-02-12 Thread Lawrence D'Oliveiro
FT_Outline objects seem to have some tricky aspects to them: they have “n_contours” and “n_points” fields to indicate the _used_ sizes of the “points”, “tags” and “contours” arrays, but no explicit way of indicating the actual _allocated_ sizes of these arrays. It looks like the caller has to keep

Re: [ft] python_freetype Design: Vector & Matrix Operations

2015-02-14 Thread Lawrence D'Oliveiro
I’ve been wondering why FreeType uses only 2×2 matrices, so it has to express translations with a separate vector. It is common in graphics libraries to use homogeneous matrices (3×3 for 2D, 4×4 for 3D) so all linear transformations can be encapsulated in a single matrix. I know FreeType can’t han

[ft] Incorrect Status Return In FT_Get_SubGlyph_Info

2015-02-14 Thread Lawrence D'Oliveiro
Looks like FT_Get_SubGlyph_Info forgets to set its error return to FT_Err_Ok if the conditions are right for it to return its info. ___ Freetype mailing list Freetype@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype

Re: [ft] Incorrect Status Return In FT_Get_SubGlyph_Info

2015-02-14 Thread Lawrence D'Oliveiro
On Sun, 15 Feb 2015 07:45:16 +0100 (CET), Werner LEMBERG wrote: >> Looks like FT_Get_SubGlyph_Info forgets to set its error return to >> FT_Err_Ok if the conditions are right for it to return its info. > > Fixed 2014-04-17, appearing in version 2.5.4. Ah. I just did an “apt-get source” on Debian

Re: [ft] python_freetype Design: Vector & Matrix Operations

2015-02-14 Thread Lawrence D'Oliveiro
On Sun, 15 Feb 2015 07:47:59 +0100 (CET), Werner LEMBERG wrote: >> I know FreeType can’t handle non-affine transformations—presumably >> that is by design. But you could do what PostScript did, and have a >> 3×2 matrix that can only express affine transformations. > > Shifting glyphs is *much* mo

Re: [ft] python_freetype Design: Vector & Matrix Operations

2015-02-14 Thread Lawrence D'Oliveiro
On Sun, 15 Feb 2015 07:47:59 +0100 (CET), Werner LEMBERG wrote: > Shifting glyphs is *much* more common than rotating or shearing. Couple of points that occur to me: * Shearing is often used to simulate italic. * When you do want to bring in the other operations, being able to combine them wit

[ft] python_freetype Design: Bitmap Objects

2015-02-16 Thread Lawrence D'Oliveiro
It seems like the APIs for FT_Bitmap objects are not entirely public. FT_Bitmap_New sets a Bitmap to null (zero dimensions, no pixel buffer allocated). FT_Bitmap_Copy can allocate storage for the pixels, but only to copy an existing non-null Bitmap. So there is no public API call to allocate a user

Re: [ft] How to use FreeType with FontConfig?

2015-02-17 Thread Lawrence D'Oliveiro
On Tue, 17 Feb 2015 20:37:04 +0200, John Found wrote: > Recently I am working on text rendering with FreeType. > > The FreeType function FT_New_Face uses the filename of the font, but > I want more flexible approach with font substitution and suggesting > fonts by some pattern, for example "serif

Re: [ft] python_freetype Design: Bitmap Objects

2015-02-17 Thread Lawrence D'Oliveiro
On Wed, 18 Feb 2015 00:29:06 +0100 (CET), Werner LEMBERG wrote: >> It seems like the APIs for FT_Bitmap objects are not entirely >> public. [...] > > Do you have the feeling that something is missing? If yes, can you > suggest something? I guess it’s a question of understanding the intended co

Re: [ft] Different font appearance depending on matrix

2015-02-18 Thread Lawrence D'Oliveiro
On Wed, 18 Feb 2015 23:54:37 +0100 (CET), Jan Engelhardt wrote: > What may be the reason behind the different renderings? As Werner says, this is not a bug, it’s a feature . ___ Freetype mailing list

Re: [ft] python_freetype Design: Bitmap Objects

2015-02-18 Thread Lawrence D'Oliveiro
On Wed, 18 Feb 2015 23:47:17 +0100 (CET), Werner LEMBERG wrote: >> I guess it’s a question of understanding the intended conventions >> for use of FT_Bitmap objects. Seems like all the calls that fill >> them in will also allocate them for you, but this is more implied >> than stated outright (e.g

Re: [ft] Suggestion/Inquiry: keeping metrics.horiAdvance for emboldened fixed-width fonts

2015-02-18 Thread Lawrence D'Oliveiro
On Thu, 19 Feb 2015 00:53:31 +0100, Raimund Steger wrote: > The issue that has been brought up -- not for the first time -- is > that some text editors use bold face for syntax highlighting, and if > said editors happen to use a font that has no native bold variant > (Droid Sans Mono, Inconsolata,

Re: [ft] How to use FreeType with FontConfig?

2015-02-18 Thread Lawrence D'Oliveiro
I wrote: > There is a sequence of Fontconfig calls I use as standard. However, I realize there is something missing from this: namely, the application of algorithmic obliquing and emboldening, where the found font doesn’t have designs for these. The sample code I gave is just ignoring this. Whic

Re: [ft] Suggestion/Inquiry: keeping metrics.horiAdvance for emboldened fixed-width fonts

2015-02-19 Thread Lawrence D'Oliveiro
On Thu, 19 Feb 2015 07:24:30 +0100 (CET), Werner LEMBERG wrote: > Finally, the correct way to embolden glyphs without increasing the > advance width is to *move* the glyphs themselves a little to the left > after emboldening! Otherwise it can happen that the very right of > emboldened glyph gets

Re: [ft] How to use FreeType with FontConfig?

2015-02-19 Thread Lawrence D'Oliveiro
On Thu, 19 Feb 2015 17:56:03 +0200, John Found wrote: > Actually, I already tried your approach and it works pretty good, > even in this draft implementation: > > http://fresh.flatassembler.net/fossil/repo/fresh/artifact/9c43c2?ln=21-58 I’m not familiar with the assembler syntax in question, bu

Re: [ft] My experiments with FreeType cache.

2015-02-20 Thread Lawrence D'Oliveiro
On Fri, 20 Feb 2015 22:15:14 +0200, John Found wrote: > But is it really OK? I suggest looking at other code that makes use of Fontconfig and FreeType, to see how they do things. Cairo and Pango come to mind. > Notice, that it is still a draft and misses any error checking. That is definitely d

Re: [ft] Python3 Language Binding

2015-02-22 Thread Lawrence D'Oliveiro
I wrote: > There seem to have been a number of attempts at implementing a Python > binding for FreeType. Let me offer my effort: > . And a couple of small example scripts are here . One does (simplistic) rend

Re: [ft] use of FT_New_Library function

2015-03-06 Thread Lawrence D'Oliveiro
On Fri, 6 Mar 2015 17:34:55 +0100, Martin Štrympl wrote: > // set library instance with own memory manager > { > FT_MemoryRec d_memory; > > d_memory.user = ps_pack; > d_memory.alloc = ESEM_Font_Font_FreeType2_FT_Alloc_Func; > d_memory.free = ESEM_Font_F

Re: [ft] use of FT_New_Library function

2015-03-06 Thread Lawrence D'Oliveiro
On Fri, 06 Mar 2015 23:23:13 +0100 (CET), Werner LEMBERG wrote: >> So you see, the FT_Memory object you pass is expected to remain >> valid for the life of the FT_Library. > > Shall something be added to the documentation? If yes, can you > provide a patch? Sure, how about, for

[ft] Correct TrueType Checksums

2015-03-07 Thread Lawrence D'Oliveiro
The TrueType font format is full of checksums: the directory entry for each table includes a checksum of the table contents, and in addition the checksum for the entire font is supposed to come out to a fixed value. To make the necessary adjustment to the font checksum, there is a longword field in

Re: [ft] python_freetype Design: Bitmap Objects

2015-03-10 Thread Lawrence D'Oliveiro
On Tue, 10 Mar 2015 11:16:06 +0100 (CET), Werner LEMBERG wrote: >> One potentially misleading thing, I think, is the routine name >> “FT_Bitmap_New”: it does not allocate any storage at all (contrast >> “FT_Outline_New” and “FT_Stroker_New”), but initializes the Bitmap >> structure to indicate “ze

Re: [ft] Faster computation of text width?

2015-03-13 Thread Lawrence D'Oliveiro
On Fri, 13 Mar 2015 22:05:44 +0200, John Found wrote: > About the C snippets - unfortunately, I can only read C and only if > it is not so complex. This way I simply can't provide C code snippets > at all. The computing world does not revolve around x86. Open-source software regularly also runs o

Re: [ft] Faster computation of text width?

2015-03-18 Thread Lawrence D'Oliveiro
On Wed, 18 Mar 2015 12:12:26 +0200, John Found wrote: > In fact, the cache code is so useful, that not developing it is a > huge mistake. I think a lot of the heavier-duty FreeType clients do their own caching. E.g. Cairo has cairo_scaled_font_t. ___ F

Re: [ft] Faster computation of text width?

2015-03-18 Thread Lawrence D'Oliveiro
On Wed, 18 Mar 2015 11:54:33 +0100 (CET), Werner LEMBERG wrote: > Additionally, I'm bad at designing APIs... I came across “The Little Manual of API Design” recently , from one of the Qt developers. ___ F

[ft] Future API (was Re: Faster computation of text width?)

2015-03-20 Thread Lawrence D'Oliveiro
On Wed, 18 Mar 2015 11:54:33 +0100 (CET), Werner LEMBERG wrote: > There are ideas to provide a lighter interface for a > forthcoming FreeType 3, but this won't come quickly. Let me add a couple of suggestions for this: * Dispose calls (FT_Done_Face etc) should accept a NULL pointer arg and do

[ft] python_freetype Now Supports Multiple Masters

2015-03-20 Thread Lawrence D'Oliveiro
I have added Multiple Masters/TrueType GX support to my Python3 wrapper for FreeType . In the process, I discovered an interesting gotcha with the Cairo graphics library: Cairo doesn’t expect you to be changing font parameters in this way. This means you mus

Re: [ft] python_freetype Now Supports Multiple Masters

2015-03-20 Thread Lawrence D'Oliveiro
On Sat, 21 Mar 2015 06:51:55 +0100 (CET), Werner LEMBERG wrote: >> Cairo doesn’t expect you to be changing font parameters in this way. > > Interesting. Have you already reported this issue to the Cairo > people? Yes, I have mentioned it on the Cairo mailing list. This was a result of testing Q

Re: [ft] Opentype support of specual characters

2015-03-22 Thread Lawrence D'Oliveiro
On Sun, 22 Mar 2015 16:35:33 +0100, g.po...@polte-media.com wrote: > is it possible to use the special characters like ö, ü, ö, ß from > opentype (otf) fonts in PHP? Doesn’t sound like a FreeType issue. Maybe you should ask on a PHP forum. ___ Freetype

[ft] Multiple Masters In A TTF File?

2015-03-24 Thread Lawrence D'Oliveiro
Hunting around for Multiple Master fonts, I came across the name “ImpossibleMM”, which in turn led me to this page , which has this one and a whole bunch of others. So I downloaded ImpossibleMM.zip, but the files are in .ttf format, unlike the others I

Re: [ft] Multiple Masters In A TTF File?

2015-03-25 Thread Lawrence D'Oliveiro
On Wed, 25 Mar 2015 08:26:43 +0100 (CET), Werner LEMBERG wrote: > ...which exactly shows what those fonts are, namely instances > extracted from the original MM fonts (using the axis values -30, 0, > and 30, respectively) then converted to TTF. Those fonts are *not* > MM fonts any more. Bugger.

Re: [ft] Re running make fails

2015-05-20 Thread Lawrence D'Oliveiro
On Wed, 20 May 2015 09:56:02 +0200 (CEST), Jan Engelhardt wrote: > But on GNU/Linux, having /usr/local/lib in ld.so.conf is normally > not needed because it is already hardcoded. Nope, the ldconfig(8) man page makes clear that only /lib and /usr/lib are hardc

Re: [ft] Freetype x86

2015-05-21 Thread Lawrence D'Oliveiro
On Thu, 21 May 2015 11:22:26 -0700, J Decker wrote: > They say that 'jam makes things easier than make' but looking through > that now I don't see simplicity. > Cmake also scans sources or enables appropriate build environments to > generate dependencies for headers Unlike Jam (or SCons), CMa

Re: [ft] Tahoma rendering differently on Freetype & Windows

2015-06-05 Thread Lawrence D'Oliveiro
On Fri, 5 Jun 2015 13:43:57 -0400, Todd Bateman wrote: > Can you cite any examples of fonts that embed bitmap strikes? > Are such fonts even known to exist? Not sure about the present tense, but many years ago an Apple Newton developer (yes, that long ago) asked me to put together a Korean font f

Re: [ft] Fw: [ft-devel] fitting a text

2015-06-05 Thread Lawrence D'Oliveiro
folkert wrote: > I'm trying to draw text to a bitmap. It should fit the height of the > bitmap and the width can be extended whenever required. > Getting the width right works fine but the height is a problem: a, b, > c fit nicely but g, q and _ fall below the bottom. You have to add the maximum

Re: [ft] Fw: [ft-devel] fitting a text

2015-06-07 Thread Lawrence D'Oliveiro
On Sun, 7 Jun 2015 11:45:34 +0200, folkert wrote: > Lawrence: > >> You have to add the maximum ascender and the maximum descender of >> allt the glyphs to get the minimum bitmap height. For example: >> > > I converted it b

Re: [ft] Fw: [ft-devel] fitting a text

2015-06-11 Thread Lawrence D'Oliveiro
On Thu, 11 Jun 2015 10:41:35 +0200, folkert wrote: > I looked at your example and I literally copied your set_char_size > (which is not that different from what I had). The result is that when > I set size to 10, I get bitmaps that are 11 pixels in height. Are you rounding sizes to integers? Reme

Re: [ft] Fw: [ft-devel] fitting a text

2015-06-12 Thread Lawrence D'Oliveiro
On Fri, 12 Jun 2015 09:58:17 +0200, folkert wrote: >> My code prints out the computed bitmap dimensions (including >> fractions); do the numbers agree with what you calculate? > > Totally different. Also your script emits different values from my > code. I converted your python script to c++: >

Re: [ft] Fw: [ft-devel] fitting a text

2015-06-12 Thread Lawrence D'Oliveiro
Another thought, you are ignoring the error return: > (void)FT_Set_Char_Size(face, target_height * 64, 0, 100, 0); It may be worth seeing if you are getting an error from this call. ___ Freetype mailing list Freetype@nongnu.org https://lists.nongnu.org

Re: [ft] Fw: [ft-devel] fitting a text

2015-06-12 Thread Lawrence D'Oliveiro
On Fri, 12 Jun 2015 16:46:36 +0200, folkert wrote: > Only the kerning is odd but I'll figure that out probably. Kerning might be either f26.6 or integer, depending on an FTFace flag and the kern_mode that you ask for

Re: [ft] Help with making sure all characters fit in Certain pixel dimensions

2015-06-25 Thread Lawrence D'Oliveiro
On Thu, 25 Jun 2015 16:10:06 -0500, Shomari Sharpe wrote: > I'm creating an font system that uses bitmap fonts generated from > freetype to be used in my game engine. It appears that even though I > have specified a pixel size of 64px there are characters that are > rendered outside the actual pix

Re: [ft] How to determine which Unicode blocks a True Type font supports?

2015-07-06 Thread Lawrence D'Oliveiro
On Mon, 6 Jul 2015 14:12:08 +0100, DK wrote: > Is there a way using FreeType on Windows to determine: > > 1. Which Unicode blocks (as per http://unicode.org/ V8.0.0) the > font supports? > > 2. In the blocks it supports, how many of the characters are > supported? It’s quite easy. Just call FT_

Re: [ft] Older versions of freetype

2015-08-11 Thread Lawrence D'Oliveiro
On Tue, 11 Aug 2015 18:08:49 +, Fred Bartholomai wrote: > We are looking for older versions of freetype. Why not get them from the Git repo ? ___ Freetype mailing list Freetype@nongnu.org https://lists.no

Re: [ft] FreeType

2015-08-19 Thread Lawrence D'Oliveiro
On Wed, 19 Aug 2015 16:33:09 +0100, Tom Harlock wrote: > I am looking to take a single truetype glyph's bytecode parse it and > draw it (i.e. a single character, extracted from the map). FreeType will give you a glyph , from

Re: [ft] Font kerning issue

2015-09-06 Thread Lawrence D'Oliveiro
On Mon, 7 Sep 2015 12:28:25 +1000, Matthew Allen wrote: > I'm working on some code that uses Freetype to render text and some > of the characters are too close together: > http://stackoverflow.com/questions/32428882/why-does-freetype-render-characters-too-close-together Just a thought, but the ke

[ft] Debian Stable Still Has Old FreeType

2015-10-01 Thread Lawrence D'Oliveiro
I’ve just been getting to the bottom of a mysterious discrepancy in the metrics of a .otf font between machines running Ubuntu 14.04 and those running Debian (Stable 8.1 and also Unstable). Turns out Debian Stable is still on version 2.5.2-3 of FreeType, while Unstable has only just upgraded to 2.

Re: [ft] commercial usage

2015-10-08 Thread Lawrence D'Oliveiro
On Thu, 8 Oct 2015 10:04:44 +, Huang Song (AA-AS/EIS3-CN) wrote: > Can we use it in commercial software freely and don’t > open our source codes(Can only select FTL license)? Don’t say “commercial” when you mean “proprietary”.

Re: [ft] Saving a FT_Bitmap as an image

2015-10-13 Thread Lawrence D'Oliveiro
On Tue, 13 Oct 2015 21:11:23 +, Ramon Guerrero wrote: > One thing I keep getting stuck on is trying to save the > FT_Bitmap as an image (bmp). I find it easier to use Cairo to save the images as PNG files. These examples might be helpful. __

Re: [ft] Vertical Center Justification

2015-10-16 Thread Lawrence D'Oliveiro
On Fri, 16 Oct 2015 21:50:20 -0400, Richard Destremps wrote: > When we print these icons we would like to center justify them in > both horizontal (X) and vertical (Y) directions. Presumably you mean “align”, not “justify”. “Justfication” means padding out the whitespace to straighten margins. _

Re: [ft] Freetype2 and TimesNewRoman?

2015-10-21 Thread Lawrence D'Oliveiro
On Thu, 22 Oct 2015 11:22:56 +0930, Domonic Tom wrote: > HiDoes Freetype2 support TimesNewRoman Font? When you’re not sure if your code works, always worth comparing against code that does work. ___ Freetype mailing list Freetype@nongnu.org https://lis

Re: [ft] Misaki Mincho metrics issues

2015-10-22 Thread Lawrence D'Oliveiro
On Fri, 23 Oct 2015 00:35:07 +0300, Nikolay Sivov wrote: > I have some troubles with Misaki Mincho font (misakimn.ttf) [1], > regarding embedded bitmaps metrics. > ... > > The question is mostly if it's reasonable to have some kind of > workaround for that in freetype itself, like ignoring des

Re: [ft] Misaki Mincho metrics issues

2015-10-22 Thread Lawrence D'Oliveiro
On Fri, 23 Oct 2015 01:39:35 +0300, Nikolay Sivov wrote: > On 23.10.2015 1:07, Lawrence D'Oliveiro wrote: > >> Or just ignore the bitmaps metrics. Bitmaps are there as a rendering >> optimization, they’re not supposed to disagree with the scalable >> metrics. >

Re: [ft] Misaki Mincho metrics issues

2015-10-23 Thread Lawrence D'Oliveiro
On Fri, 23 Oct 2015 11:19:32 +0300, Nikolay Sivov wrote: > On 23.10.2015 2:01, Lawrence D'Oliveiro wrote: > >> On Fri, 23 Oct 2015 01:39:35 +0300, Nikolay Sivov wrote: >> >>> Thing is that this font is not reported as scalable by freetype... >> >&

Re: [ft] Misaki Mincho metrics issues

2015-10-23 Thread Lawrence D'Oliveiro
On Fri, 23 Oct 2015 13:02:20 +0300, Nikolay Sivov wrote: > Well, it wasn't a question, older font exists as well. What about > issue I mentioned initially regarding bitmap metrics of that one > specific font? I want to have a solution for such fonts, so it > doesn't accidentally break every time a

Re: [ft] Misaki Mincho metrics issues

2015-10-23 Thread Lawrence D'Oliveiro
On Fri, 23 Oct 2015 20:30:28 +0400, Khaled Hosny wrote: > there might be other fonts on the wild exhibiting the same issue. Such as? ___ Freetype mailing list Freetype@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype

Re: [ft] How to draw FT_Bitmap to the ARGB image?

2015-11-05 Thread Lawrence D'Oliveiro
On Thu, 5 Nov 2015 16:00:24 +0200, John Found wrote: > I am writing a GUI library ... Does it solve the automation problem ? ___ Freetype mailing list Freetype@nongnu.org https://list

Re: [ft] How to draw FT_Bitmap to the ARGB image?

2015-11-05 Thread Lawrence D'Oliveiro
On Fri, 6 Nov 2015 02:33:13 +0200, John Found wrote: > On Fri, 6 Nov 2015 13:00:12 +1300 > Lawrence D'Oliveiro wrote: > >> On Thu, 5 Nov 2015 16:00:24 +0200, John Found wrote: >> >>> I am writing a GUI library ... >> >> Does it solve the auto

Re: [ft] SourceForge repo

2015-11-16 Thread Lawrence D'Oliveiro
On Sat, 14 Nov 2015 22:03:01 +0200, Deniz DEMİRCİ wrote: > Does anyone knows what is wrong with the sourceforge repo? Try here instead. ___ Freetype mailing list Freetype@nongnu.org https://lists.nongnu.org/

  1   2   >