[Bf-taskforce25] Blendfont status and proposal.

Diego B bdiego at gmail.com
Wed Apr 29 18:20:13 CEST 2009


On Wed, Apr 29, 2009 at 11:44 AM, Campbell Barton <ideasman42 at gmail.com> wrote:
> Looks like we can get rid of our own PSFont loader, in font.c's load_vfont
>
> #ifdef WITH_FREETYPE2
>                vfd= BLI_vfontdata_from_freetypefont(pf);
> #else
>                vfd= BLI_vfontdata_from_psfont(pf);
> #endif
>
>
> On Wed, Apr 29, 2009 at 5:16 AM, Ton Roosendaal <ton at blender.org> wrote:
>> Hi Diego,
>>
>> I'm fine with removing bmfont. Not sure what else will be removed...
>> Campbell mentions the postscript loaded, but this is only used for the
>> 3D Font Object type, which better not gets affected by this work. It's
>> a separate topic, right?

Like Campbell say, only remove the WITH_FREETYPE2, nothing else.

>>
>> -Ton-
>>
>> ------------------------------------------------------------------------
>> Ton Roosendaal  Blender Foundation   ton at blender.org    www.blender.org
>> Blender Institute BV  Entrepotdok 57A  1018AD Amsterdam The Netherlands
>>
>> On 28 Apr, 2009, at 10:08, Campbell Barton wrote:
>>
>>> +1 for removing bitmap fronts, can also remove our own post script
>>> font loading code.
>>>
>>> On Tue, Apr 28, 2009 at 12:44 AM, Diego B <bdiego at gmail.com> wrote:
>>>> Hello all, this mail is to write a little about the status of blenfont
>>>> and the changes that I want to do:
>>>>
>>>> First of all, blenfont can load/work with two types of fonts, the
>>>> first is freetype2 and the second
>>>> what I call "internal font", and it's the old bitmap font
>>>> (intern/bmfont).
>>>>
>>>> Here is where we have the first limitation, with freetype2 we can:
>>>>  * Load any font support by freetype2
>>>>  * Change the font size without limitation
>>>>  * Change the dpi (screen resolution)
>>>>  * Apply a transformation (2x2 mat) to every glyph that we load, this
>>>> is apply by the library
>>>>     so the final bitmap glyph have all the details. (we can get
>>>> better rotate text)
>>>>  * Support utf8/international
>>>>
>>>> and the internal font:
>>>>  * The font are limit to what we have builtin (right now helv, helv
>>>> bold and scr)
>>>>  * The font size are limit, helv 10, 12, helv bold 8, 10, 12 and scr
>>>> 12, 14, 15
>>>>  * Can't change the dpi
>>>>  * Can't apply transformations
>>>>  * Only support ascii characters
>>>>
>>>>
>>>> The library support two mode for draw both fonts, Texture and Bitmap.
>>>> The Texture mode have all
>>>> the new functions, rotate, blur, clipping, shadow in the other side,
>>>> the Bitmap mode still need more work.
>>>>
>>>> One of the big problem is keep a nice/clean/understandable text when
>>>> we don't use the freetype2 library, this is
>>>> because the limitation of the internal font.
>>>>
>>>> So.. the freetype2 library has been on Blender since a long time and I
>>>> think is time to move on.
>>>>
>>>> What I want to do is remove the old internal font and always work with
>>>> freetype2, doing this freetype2
>>>> is no more optional and we can remove all the WITH_FREETYPE2.
>>>>
>>>> My todo:
>>>>  1) Remove old internal font (also bmfont) and WITH_FREETYPE2
>>>>  2) Add shadow option to blenfont (move from Style to BLF)
>>>>  3) Add a "draw to buffer" function (for stamp info)
>>>>  4) Put the Bitmap mode to the same level that Texture mode (go to
>>>> keep this ? or just move to texture ?)
>>>>
>>>>
>>>> Comments ? Suggestion ?
>>>> _______________________________________________
>>>> Bf-taskforce25 mailing list
>>>> Bf-taskforce25 at blender.org
>>>> http://lists.blender.org/mailman/listinfo/bf-taskforce25
>>>>
>>>
>>>
>>>
>>> --
>>> - Campbell
>>> _______________________________________________
>>> Bf-taskforce25 mailing list
>>> Bf-taskforce25 at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-taskforce25
>>>
>>>
>>
>> _______________________________________________
>> Bf-taskforce25 mailing list
>> Bf-taskforce25 at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-taskforce25
>>
>
>
>
> --
> - Campbell
> _______________________________________________
> Bf-taskforce25 mailing list
> Bf-taskforce25 at blender.org
> http://lists.blender.org/mailman/listinfo/bf-taskforce25
>


More information about the Bf-taskforce25 mailing list