LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-19-2010, 11:44 AM   #16
Nordman
LQ Newbie
 
Registered: Dec 2010
Location: Russia->Australia
Distribution: Linux Mint/LXDE
Posts: 10

Original Poster
Rep: Reputation: 0
Exclamation


He-he, guys, I did it!

You may see result here:
http://rghost.ru/3670657/image.png

Details:
1) download source freetype-2.4.2.tar.bz2
2) change a function FT_Get_Char_Index in 3200 line at file
./freetype-2.4.2/src/base/ftobjs.c:
Code:
unsigned int cyr_lat_chars[2][66] = {                                                                                         
  {0x410, 0x411, 0x412, 0x413, 0x414, 0x415, 0x401, 0x416, 0x417, 0x418, 0x419, 0x41A, 0x41B, 0x41C, 0x41D, 0x41E,            
   0x41F, 0x420, 0x421, 0x422, 0x423, 0x424, 0x425, 0x426, 0x427, 0x428, 0x429, 0x42A, 0x42B, 0x42C, 0x42D, 0x42E, 0x42F,     
   0x430, 0x431, 0x432, 0x433, 0x434, 0x435, 0x451, 0x436, 0x437, 0x438, 0x439, 0x43A, 0x43B, 0x43C, 0x43D, 0x43E,            
   0x43F, 0x440, 0x441, 0x442, 0x443, 0x444, 0x445, 0x446, 0x447, 0x448, 0x449, 0x44A, 0x44B, 0x44C, 0x44D, 0x44E, 0x44F},    
  {0x041, 0x042, 0x056, 0x047, 0x044, 0x045, 0x0D6, 0x17D, 0x05A, 0x049, 0x059, 0x04B, 0x04C, 0x04D, 0x04E, 0x04F,            
   0x050, 0x052, 0x053, 0x054, 0x055, 0x046, 0x048, 0x043, 0x10C, 0x160, 0x15E, 0x059, 0x04A, 0x057, 0x11A, 0x0DC, 0x0C4,     
   0x061, 0x062, 0x076, 0x067, 0x064, 0x065, 0x0F6, 0x17E, 0x07A, 0x069, 0x079, 0x06B, 0x06C, 0x06D, 0x06E, 0x06F,            
   0x070, 0x072, 0x073, 0x074, 0x075, 0x066, 0x068, 0x063, 0x10D, 0x161, 0x15F, 0x079, 0x06A, 0x077, 0x11B, 0x0FC, 0x0E4}};   
                                                                                                                              
  /* documentation is in freetype.h */                                                                                        
                                                                                                                              
  FT_EXPORT_DEF( FT_UInt )                                                                                                    
  FT_Get_Char_Index( FT_Face   face,                                                                                          
                     FT_ULong  charcode )                                                                                     
  {                                                                                                                           
    FT_UInt  result = 0;                                                                                                      
                                                                                                                              
    int i = 0;                                                                                                                
    while ( (i < 66) && (cyr_lat_chars[0][i] != charcode) )                                                                   
      i++;                                                                                                                    
    if (i < 66)                                                                                                               
      charcode = cyr_lat_chars[1][i];                                                                                         
                                                                                                                              
    if ( face && face->charmap )
3) then backup, configure, make and install with root right:
Code:
cp /usr/lib/libfreetype.so.6.6.0 /usr/lib/libfreetype.so.6.6.0.old
./configure --prefix=/usr
make
make install
4) reboot, and all cyrillic symbols become latins!

THANKS FOR ATENTION!

P.S. If you want to come back:
Code:
cp /usr/lib/libfreetype.so.6.6.0 /usr/lib/libfreetype.so.6.6.0.new
cp /usr/lib/libfreetype.so.6.6.0.old /usr/lib/libfreetype.so.6.6.0

or:
aptitude reinstall libfreetype6

Last edited by Nordman; 12-19-2010 at 11:53 AM. Reason: more precise
 
Old 12-20-2010, 02:15 AM   #17
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Thanks for posting your solution. Looks a little bit bizarre but convincing. Have a nice Christmas time and a good new year.
 
Old 12-21-2010, 04:56 PM   #18
Nordman
LQ Newbie
 
Registered: Dec 2010
Location: Russia->Australia
Distribution: Linux Mint/LXDE
Posts: 10

Original Poster
Rep: Reputation: 0
Danke schon! Marry Christmas too, man!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop bash from replacing "~/" with "/home/username"? daihard Linux - Software 8 08-22-2010 02:32 PM
Trivial regular expression for replacing "\n.\n" with "\n .\n" gregorian Linux - Newbie 3 08-23-2009 04:40 PM
How do I disable "shutdown" and "restart" options in KDE logout screen for all users? maxgsp Linux - Distributions 1 12-12-2008 03:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Replacing "function(x)" with "x" using sed/awk/smth Griffon26 Linux - General 3 11-22-2006 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration