You are not logged in.

#1 2009-01-24 04:16:55

Frantic
Member
Registered: 2009-01-22
Posts: 32

Cannot get the FreeType bytecode interpreter to work

I've done everything I could find in the wikis.

I've read that arch's repo freetype comes with the BIC enabled.
First line in Intro at http://wiki.archlinux.org/index.php/Fonts

So the fonts are looking OK, but I've found a thread online (don't remember where) showing the difference between BIC disabled-enabled with a before and after picture of the gnome menu. My font looks exactly like the before picture.

So I compiled my own freetype with the BIC enabled to be sure. Nothing changed. I even tried compiling it with the BIC disabled just to see if anything would change, nothing.

I guess the BIC is not working for some other reason, but I don't know why, can anyone help me on this?

I know that having autohint enabled overrides the BIC, so I've disabled it.

My .Xresources looks like this:

Xft.hinting: true
Xft.antialias: rgba 
Xft.hintstyle: hintfull
Xft.lcdfilter: lcddefault
Xft.rgba: rgb

I have linked in fonts/conf.d:

bash-3.2$ ls /etc/fonts/conf.d/ 
10-lcd-filter.conf       20-unhint-small-vera.conf     30-urw-aliases.conf  49-sansserif.conf  60-latin.conf        69-unifont.conf    README
10-sub-pixel-rgb.conf       29-replace-bitmap-fonts.conf  40-nonlatin.conf     50-user.conf     65-fonts-persian.conf    80-delicious.conf
20-fix-globaladvance.conf  30-metric-aliases.conf     45-latin.conf          51-local.conf     65-nonlatin.conf    90-synthetic.conf

My xorg.conf is:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder62)  Tue Jan  6 09:43:54 PST 2009

# Auto-generated by Archie mkxcfg
# Auto-generated by Archie mkxcfg

Section "ServerLayout"

# PS/2 Mouse not detected
# Serial Mouse not detected
    Identifier     "Xorg Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "USB Mouse" "CorePointer"
EndSection

Section "Files"

# Additional fonts: Locale, Gimp, TTF...
#    FontPath     "/usr/share/lib/X11/fonts/latin2/75dpi"
#    FontPath     "/usr/share/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc:unscaled"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/75dpi:unscaled"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/PEX"
    FontPath        "/usr/share/fonts/cyrillic"
#    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/ttf/western"
    FontPath        "/usr/share/fonts/ttf/decoratives"
    FontPath        "/usr/share/fonts/truetype"
    FontPath        "/usr/share/fonts/truetype/openoffice"
    FontPath        "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath        "/usr/share/fonts/latex-ttf-fonts"
    FontPath        "/usr/share/fonts/defoma/CID"
    FontPath        "/usr/share/fonts/defoma/TrueType"
EndSection

Section "Module"
    Load           "ddc"  # ddc probing of monitor
    Load           "dbe"
    Load           "extmod"
    Load           "glx"
    Load           "bitmap" # bitmap-fonts
    Load           "type1"
    Load           "freetype"
    Load           "record"
    #   Load  "synaptics"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
    Option         "AutoAddDevices" "False"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "keyboard"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
    Option         "XkbVariant" ""
EndSection

Section "InputDevice"
    Identifier     "Serial Mouse"
    Driver         "mouse"
    Option         "Protocol" "Microsoft"
    Option         "Device" "/dev/ttyS0"
    Option         "Emulate3Buttons" "true"
    Option         "Emulate3Timeout" "70"
    Option         "SendCoreEvents" "true"
EndSection

Section "InputDevice"
    Identifier     "PS/2 Mouse"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "ZAxisMapping" "4 5"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "true"
    Option         "Emulate3Timeout" "70"
    Option         "SendCoreEvents" "true"
EndSection

Section "InputDevice"
    Identifier     "USB Mouse"
    Driver         "mouse"
    Option         "Device" "/dev/input/mice"
    Option         "SendCoreEvents" "true"
    Option         "Protocol" "IMPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Buttons" "5"
EndSection

Section "Monitor"
 # Warning: This may fry old Monitors
 # Very conservative. May flicker.
#    VertRefresh  50.0 - 62.0 # Extreme conservative. Will flicker. TFT default.
    #  Default modes distilled from
    #      "VESA and Industry Standards and Guide for Computer Display Monitor
    #       Timing", version 1.0, revision 0.8, adopted September 17, 1998.
    #  $XFree86: xc/programs/Xserver/hw/xfree86/etc/vesamodes,v 1.4 1999/11/18 16:52:17 tsi Exp $
    # 640x350 @ 85Hz (VESA) hsync: 37.9kHz
    Identifier     "Monitor0"
    HorizSync       28.0 - 96.0
    VertRefresh     50.0 - 75.0
    ModeLine       "640x350" 31.5 640 672 736 832 350 382 385 445 +hsync -vsync
/// TRIMMED, JUST MORE 30ish MODELINES HERE
    ModeLine       "1600x1200" 280.64 1600 1728 1904 2208 1200 1201 1204 1271 -hsync +vsync
    Option         "DPMS" "true"
#    HorizSync    28.0 - 78.0 # Warning: This may fry very old Monitors
EndSection

Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "All"
    BoardName      "All"
    Option    "RenderAccel"    "True"
    Option    "BackingStore"    "True"
    Option    "DamageEvents"    "True"
    Option    "DPI"        "96 x 96"
    Option    "RegistryDwords" "PerfLevelSrc=0x3333"

EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       32
    Modes      "1280x800"
    EndSubSection
EndSection

Offline

#2 2009-01-24 13:05:24

Frantic
Member
Registered: 2009-01-22
Posts: 32

Re: Cannot get the FreeType bytecode interpreter to work

One more thing, but I doubt it's this:

I used lsof to see which libfreetype.so X was using, so I found out it was /usr/lib/xorg/modules/libfreetype.so.
This was not getting replaced by my compiled freetypbe, but this .so only has 6k, so I guess it's just a wrapper for the original libfreetype (which is ~600k).

Anyway I couldn't find any replacement for this in the freetype package and google didn't return anything.
I also tried replacing it with the real libfreetype.so and X gave an error about a missing struct. I grepped my freetype sources for that struct but couldnt find anything, so I guess that's indeed just a wrapper.

Could this be the cause?

Offline

#3 2009-01-24 14:32:02

Frantic
Member
Registered: 2009-01-22
Posts: 32

Re: Cannot get the FreeType bytecode interpreter to work

65 views, 0 replies :-z
Next step is to find the BIC and log when it's called
I guess the saying is true, linux is only free if your time is worth nothing smile

Offline

#4 2009-01-24 20:00:04

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: Cannot get the FreeType bytecode interpreter to work

Frantic wrote:

65 views, 0 replies :-z

Possibly because most people seem to prefer the autohinter.

I realise that this is no help to you, but it might explain the lack of response.


0 Ok, 0:1

Offline

#5 2009-01-24 20:34:19

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Cannot get the FreeType bytecode interpreter to work

Did you try playing with Gnome font settings?
Try with a simple wm (eg openbox) that does not alter font settings by itself and see how it works.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2009-02-22 12:14:36

blackhole
Member
From: Karlsruhe, Germany
Registered: 2008-12-14
Posts: 148
Website

Re: Cannot get the FreeType bytecode interpreter to work

How can I create the link "10-lcd-filter.conf"? What is it linked to?
I can't find a "10-lcd-filter.conf" in my /etc/fonts/conf.available. I've replaced libxft by libxft-lcd so it should be there, right?

Oh and could anyone explain the difference between font settings in ~/.fonts.conf and ~/.Xresources to me, please? Is it the same? Are the two settings influencing each other?

Last edited by blackhole (2009-02-22 12:20:54)


Coming closer and closer to the ultimate goal: replacing boring old Windows XP desktop with shiny new Arch KDE 4 desktop. ^^
Already registered? Your vote counts!

Offline

Board footer

Powered by FluxBB