Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40308] branches/soc-2011-garlic: i18n: replace gnu unifont with droid sans font

2011-09-18 Thread Sergey I. Sharybin
Hi,

Dalai Felinto wrote:
 Some of the missing glyphs: ñ (you can see this in the Español (Spanish)
 option in the UI). ç (missing in the Française option).
 They are other missing characters visible from the Language selection ui as
 well.
Should be fine now
 Note 2: once we are done with this change would be nice to get rid of bfont
 (i.e. to use DroidSans as the Font Object font).
 Note 3: ideally we should use the DroidSansMono for the TextEditor, what do
 you think? I remember trying it but the character spacing were all messed up
 when code syntax was on (I think we have hardcoded values there).
Yes, this would be cool, but i don't think it's a goal of garlic before 
merge.

-- 
With best regards, Sergey I. Sharybin

___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40308] branches/soc-2011-garlic: i18n: replace gnu unifont with droid sans font

2011-09-17 Thread Dalai Felinto
Hi Sergey,
I'm glad to see the Droid font there. I just updated the win garlic builds
with the new font :) [1]

Guillermo (gez) told me that you found your way to combine different tffs.
It seems, however, that the final one does not have at least the Latin
subset.

Some of the missing glyphs: ñ (you can see this in the Español (Spanish)
option in the UI). ç (missing in the Française option).
They are other missing characters visible from the Language selection ui as
well.

Note: if you want to try a quick hack to edit an existent UI file to replace
a text with a latin character you need to add this to the top of the
script:
# -*- coding: latin-1 -*-

Note 2: once we are done with this change would be nice to get rid of bfont
(i.e. to use DroidSans as the Font Object font).
Note 3: ideally we should use the DroidSansMono for the TextEditor, what do
you think? I remember trying it but the character spacing were all messed up
when code syntax was on (I think we have hardcoded values there).

Cheers,
Dalai

[1] - www.graphicall.org/dfelinto

2011/9/17 Sergey Sharybin g.ula...@gmail.com

 Revision: 40308

 http://projects.blender.org/scm/viewvc.php?view=revroot=bf-blenderrevision=40308
 Author:   nazgul
 Date: 2011-09-17 20:50:22 + (Sat, 17 Sep 2011)
 Log Message:
 ---
 i18n: replace gnu unifont with droid sans font

 - Static variables can be initialized with constants only.
 - Removed bunifont.ttf.c from datafiles -- it's not actually a
  data file. Unicode font loading stuff is not in blenkernel/font.c
 - Allocate as much memory for unzipped data as it's needed.
  Default read chunk is 512Kb.
 - Fixed regression (or just a typo) in setting utf locale.
 - Default locale set to en_US:en works fine now.
 - Commented put Nepali language in user preferences -- it's
  not supported by current droid font and imo it's better to
  have nice font for languages we actually have translation for
  rather than allowing to choose more languages in user preferences.

 Modified Paths:
 --
branches/soc-2011-garlic/source/blender/blenfont/intern/blf_lang.c
branches/soc-2011-garlic/source/blender/blenkernel/BKE_font.h
branches/soc-2011-garlic/source/blender/blenkernel/CMakeLists.txt
branches/soc-2011-garlic/source/blender/blenkernel/SConscript
branches/soc-2011-garlic/source/blender/blenkernel/intern/font.c
branches/soc-2011-garlic/source/blender/blenlib/BLI_fileops.h
branches/soc-2011-garlic/source/blender/blenlib/intern/fileops.c
branches/soc-2011-garlic/source/blender/editors/datafiles/CMakeLists.txt

  branches/soc-2011-garlic/source/blender/editors/interface/interface_style.c
branches/soc-2011-garlic/source/blender/makesrna/intern/rna_userdef.c

  branches/soc-2011-garlic/source/blender/windowmanager/intern/wm_init_exit.c

 Added Paths:
 ---
branches/soc-2011-garlic/release/bin/.blender/fonts/droidsans.ttf.gz

 Removed Paths:
 -
branches/soc-2011-garlic/release/bin/.blender/fonts/unifont.ttf.gz
branches/soc-2011-garlic/source/blender/editors/datafiles/bunifont.ttf.c

 Added: branches/soc-2011-garlic/release/bin/.blender/fonts/droidsans.ttf.gz
 ===
 --- branches/soc-2011-garlic/release/bin/.blender/fonts/droidsans.ttf.gz
  (rev 0)
 +++ branches/soc-2011-garlic/release/bin/.blender/fonts/droidsans.ttf.gz
  2011-09-17 20:50:22 UTC (rev 40308)
 @@ -0,0 +1,12441 @@
 + \x8B  '\xEAtN  DroidSansFallback.ttf \xEC\x9D
 +`\U\x95\xF8\xDF{y-E* \x88 %괝\xC2  t\xD4QF a\x80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