Issue 59853 - Replace the default BitStream Vera font with DejaVu
Summary: Replace the default BitStream Vera font with DejaVu
Status: CLOSED FIXED
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: OOo 2.0.1
Hardware: All All
: P3 Trivial with 1 vote (vote)
Target Milestone: OOo 2.4
Assignee: eric.savary
QA Contact: issues@installation
URL:
Keywords:
: 67559 (view as issue list)
Depends on:
Blocks:
 
Reported: 2005-12-28 16:32 UTC by kami911
Modified: 2008-09-19 11:55 UTC (History)
8 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The patchpack (2.29 KB, application/octet-stream)
2005-12-28 16:34 UTC, kami911
no flags Details
Packed DejaVu fonts ver. 2.1 (1.24 MB, application/octet-stream)
2005-12-28 16:35 UTC, kami911
no flags Details
Full patchset to remove Bitstream and add DejaVu with neutral "fonts" prj, dir (1.23 MB, application/x-compressed)
2006-01-16 21:04 UTC, kami911
no flags Details
Updated DejaVu fonts 2.2, corrected patches... (1.32 MB, application/x-compressed)
2006-01-19 19:34 UTC, kami911
no flags Details
Updated DejaVu 2_3 (1.33 MB, application/octet-stream)
2006-02-18 15:09 UTC, kami911
no flags Details
Updated DejaVu fonts (2.3), updated patch - works with 2.0.2 M5 (1.74 MB, application/octet-stream)
2006-03-02 08:39 UTC, kami911
no flags Details
Updated to 2.16 (6.54 MB, application/x-compressed)
2007-05-11 16:31 UTC, kami911
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kami911 2005-12-28 16:32:44 UTC
Its purpose is to provide a wider range of characters (see Current status page
for more information) while maintaining the original look and feel through the
process of collaborative development (see Authors). The family is available as
TrueType fonts and also as third-party packages for various operating systems
including handhelds (Download).

So it based on Bitstream Vera Fonts (look&feel) but provide a wider range of
characters... For example the original font does not contain Hungarian őű and
there are problems with cs&sk languages too...

I have created patches to integrate into build system!
Let's talk about!
Comment 1 kami911 2005-12-28 16:34:31 UTC
Created attachment 32750 [details]
The patchpack
Comment 2 kami911 2005-12-28 16:35:30 UTC
Created attachment 32751 [details]
Packed DejaVu fonts ver. 2.1
Comment 3 timar74 2005-12-28 17:27:37 UTC
Homepage of the DejaVu font: http://dejavu.sourceforge.net/
License: Fonts are © Bitstream (same as Bitsteram Vera). DejaVu changes are in
public domain. 

Bitsream Vera supports only Latin1 characters. DejaVu supports a lot more, see
at:http://dejavu.sourceforge.net/wiki/index.php/Current_status
Comment 4 timar74 2005-12-28 17:40:27 UTC
DEFECT->ENHANCEMENT
Comment 5 davidfraser 2005-12-29 11:59:19 UTC
Interesting, I've just been adding dejavu fonts to ooo-build
Comment 6 kami911 2005-12-30 08:33:34 UTC
Did you updated the help's stylesheets?
Comment 7 stephan_schaefer 2005-12-30 10:33:28 UTC
ssa->hdu: when evaluating this patch please check with mh possible licensing issues
Comment 8 kami911 2006-01-16 21:00:16 UTC
I will incluide a non tested patch that replaces all bitstream related infos to
dejavu and neutral fonts. Please review it.
Comment 9 kami911 2006-01-16 21:04:26 UTC
Created attachment 33284 [details]
Full patchset to remove Bitstream and add DejaVu with neutral "fonts" prj, dir
Comment 10 kami911 2006-01-19 19:34:31 UTC
Created attachment 33385 [details]
Updated DejaVu fonts 2.2, corrected patches...
Comment 11 pavel 2006-01-19 19:51:56 UTC
.

I think this is for 3.0...
Comment 12 kami911 2006-01-22 05:45:26 UTC
For the correct solution we have to set font replacement like this (file:
OpenOffice.org2/user/registry/data/orgo/penoffice/Office/Common.xcu):

 <node oor:name="Font">
  <node oor:name="Substitution">
   <prop oor:name="Replacement" oor:type="xs:boolean">
    <value>true</value>
   </prop>
   <node oor:name="FontPairs">
    <node oor:name="_0" oor:op="replace">
     <prop oor:name="Always" oor:type="xs:boolean">
      <value>false</value>
     </prop>
     <prop oor:name="OnScreenOnly" oor:type="xs:boolean">
      <value>false</value>
     </prop>
     <prop oor:name="ReplaceFont" oor:type="xs:string">
      <value>Bitstream Vera Sans</value>
     </prop>
     <prop oor:name="SubstituteFont" oor:type="xs:string">
      <value>DejaVu Sans</value>
     </prop>
    </node>
    <node oor:name="_1" oor:op="replace">
     <prop oor:name="Always" oor:type="xs:boolean">
      <value>false</value>
     </prop>
     <prop oor:name="OnScreenOnly" oor:type="xs:boolean">
      <value>false</value>
     </prop>
     <prop oor:name="ReplaceFont" oor:type="xs:string">
      <value>Bitstream Vera Sans Mono</value>
     </prop>
     <prop oor:name="SubstituteFont" oor:type="xs:string">
      <value>DejaVu Sans Mono</value>
     </prop>
    </node>
    <node oor:name="_2" oor:op="replace">
     <prop oor:name="Always" oor:type="xs:boolean">
      <value>false</value>
     </prop>
     <prop oor:name="OnScreenOnly" oor:type="xs:boolean">
      <value>false</value>
     </prop>
     <prop oor:name="ReplaceFont" oor:type="xs:string">
      <value>Bitstream Vera Serif</value>
     </prop>
     <prop oor:name="SubstituteFont" oor:type="xs:string">
      <value>DejaVu Serif</value>
     </prop>
    </node>
   </node>
  </node>
 </node>

It replaces the font when Bitstream Vera is not available...
In my opinion we can do it for 2.0.3 with carefully testing... For example I
will upload a build soon for testing...
Comment 13 kami911 2006-01-28 05:44:14 UTC
Windows builds with DejaVu fonts:
http://ftp.fsf.hu/OpenOffice.org_hu/devel/M150_Premium/

Font replacement is not set...
Comment 14 Martin Hollmichel 2006-02-07 14:59:27 UTC
set target to 2.0.3
Comment 15 timar74 2006-02-14 13:05:02 UTC
I suggest not to replace Bitstream Vera to DejaVu everywhere, just put DejaVu
before Bitstream Vera in the lists. Not everybody packages OOo with fonts and we
cannot expect that DejaVu is present on all target systems (e.g. on Linux
distributions). Bitstream Vera is more widespread. 

For example in vcl/source/gdi/fontcfg.cxx I would write:
#define FALLBACKFONT_UI_SANS "Andale Sans UI;Tahoma;Arial Unicode
MS;Arial;DejaVu Sans;Bitstream Vera Sans;gnu-unifont;Interface
User;Geneva;WarpSans;Dialog;Swiss;Lucida;Helvetica;Charcoal;Chicago;MS Sans
Serif;Helv;Times;Times New Roman;Interface System"
#define FALLBACKFONT_UI_SANS_LATIN2 "Andale Sans UI;Tahoma;Arial Unicode
MS;Arial;DejaVu Sans;Luxi Sans;Bitstream Vera Sans;Interface
User;Geneva;WarpSans;Dialog;Swiss;Lucida;Helvetica;Charcoal;Chicago;MS Sans
Serif;Helv;Times;Times New Roman;Interface System" 

Please note that in the LATIN2 line I put DejaVu before Luxi, because DejaVu
looks nicer than Luxi and we would like to use it, if it is available.

The same applies to officecfg/registry/data/org/openoffice/VCL.xcu and
helpcontent css files (dejavufont_VCL.diff and dejavufont_helpcontet_css.diff
respectively). 
Comment 16 kami911 2006-02-18 15:09:19 UTC
Created attachment 34262 [details]
Updated DejaVu 2_3
Comment 17 kami911 2006-02-18 15:12:15 UTC
Updated patch:
* Force DejaVu fonts instead of Bitsteram Vera, but not to replace it
* Special Greek font order (requested in:
http://qa.openoffice.org/issues/show_bug.cgi?id=61273)
Comment 18 kami911 2006-03-02 08:39:09 UTC
Created attachment 34542 [details]
Updated DejaVu fonts (2.3), updated patch - works with 2.0.2 M5
Comment 19 hdu@apache.org 2006-03-15 10:05:43 UTC
.
Comment 20 hdu@apache.org 2006-04-12 14:31:44 UTC
I'm splitting this issue up into an installation/extras task ("replace the
fonts") and a configuration change ("use the fonts" => issue 64330).
Comment 21 nospam 2006-04-13 08:47:11 UTC
ih->mh: you did check in the bitstream fonts, please replace them as requested here.
Comment 22 pavel 2006-05-17 07:57:56 UTC
2.0.3 is no longer realistic target.
Comment 23 kami911 2006-05-17 18:24:44 UTC
Could you explain your decision? The required patch has attached to this issue...
Tha another part of this issue under issue 64330 is already in the stream...
Comment 24 pavel 2006-05-18 11:28:28 UTC
kami: we can't replace so basic thing like the default fonts so close to the
release (think of possible things that could break!).

We should do this very early in 2.0.4 stage.
Comment 25 kami911 2006-05-18 20:18:23 UTC
I am so sad, because the solution was available before release of 2.0.2. OK
2.0.2 was not realistic, but 3 month later when patch available, testbuilds (at
ftp://ftp.fsf.hu/OpenOffice.org_hu/devel/OOB680_m5_Premium and
ftp://ftp.fsf.hu/OpenOffice.org_hu/devel/OOB680_m5/) work well. So we lost
another 3 month again :o(
Comment 26 kami911 2006-07-10 19:29:36 UTC
Can anyone do the integration work in his CWS?
Thanks,
KAMI
Comment 27 pavel 2006-07-20 07:20:41 UTC
*** Issue 67559 has been marked as a duplicate of this issue. ***
Comment 28 kami911 2007-05-11 16:31:39 UTC
Created attachment 45053 [details]
Updated to 2.16
Comment 29 Martin Hollmichel 2007-10-23 06:29:41 UTC
review is in progress, please stay tuned.
Comment 30 ingo.schmidt-rosbiegal 2007-11-16 11:19:35 UTC
.
Comment 31 ingo.schmidt-rosbiegal 2007-11-26 15:16:01 UTC
Planning integration into cws symex.
Comment 32 ingo.schmidt-rosbiegal 2007-11-27 10:13:44 UTC
IS -> HDU: My part in scp2 is fixed. Please deliver the fonts files from the cvs
modules to <common.pro>/pck.<minor>.
(I saved the font files temporarely in
symex/SRC680/src.236/instset_native/common.pro/bin/fonts)
Comment 33 hdu@apache.org 2007-11-29 15:23:21 UTC
Done in CWS symex.
Comment 34 hdu@apache.org 2007-12-03 11:22:09 UTC
@ES: please verify in CWS symex
Comment 35 timar74 2007-12-03 11:33:28 UTC
@hdu: DejaVu releases are generally made each 4 to 6 weeks. I would like to
know, if you would regularly update it in OOo source? Before each OOo release
for example.
Comment 36 hdu@apache.org 2007-12-03 12:03:46 UTC
@timar: though it would be good idea to always have the latest version one has to consider the 
overhead involved to make it happen:
- making the child-work-space
- developer testing it
- building testable versions on all mainstream platforms
- testing these manually and automatically
- integrating the result into the master
- testing again after integration

That's quite an effort, especially when considering that most users of OOo+DejaVu fonts would 
probably not notice any difference in their daily work. The priority of integrating updated fonts depends 
also on the issues which can be solved by this and the priority of these issues.
Comment 37 nmailhot 2007-12-03 13:17:03 UTC
New DejaVu versions often include whole new unicode blocks so there are
definitely user-visible changes in them, and  never refreshing the fonts is not
a good idea.

The refresh rate however is open to discussion IMHO. While refreshing every dot
release would be nice it may not be an efficient resource use.
Comment 38 hdu@apache.org 2007-12-03 16:17:25 UTC
@nmailhot: Yes, of course. Support for more unicodes is a good argument for a refresh. Especially if an 
OOo-localization project benefits from the new glyphs. The refresh will be triggered by a new entry in the 
issuezilla system, if the severity of the issue is high enough.
Comment 39 eric.savary 2008-01-07 14:04:02 UTC
VERIFIED
Comment 40 hdu@apache.org 2008-09-19 11:55:00 UTC
Seen in MWS, closing the verified issue.