July 23, 2012

libeasyfc 0.9

Well, this article is just to advertise my efforts on libeasyfc again. libeasyfc is a library to allow you to add/modify/remove the fontconfig configuration for your preferred fonts.

Currently it has the following features:
  • Set an alias for sans-serif, serif, monospace, cursive and fantasy per languages.
  • Enable/Disable hinting, auto-hinting, embedded bitmap and anti-aliasing.
  • Set/Unset the sub-pixel geometry and the hint style for auto-hinting.
No GUI in this project, but CLI is available as the example code. or you can use fonts-tweak-tool for GUI. modified version for new release of libeasyfc is also available in my github.

Enjoy!

June 25, 2012

Fontconfig in scheme

This is just experimental and wrote it for learning purpose or testing because it may be helpful to consider modifying the data structure for the better matching rules in the future.

The code just tries to build the pattern from the configuration as similar as possible, but not trying later process. I mean to match the best font in the system against it, like FcFontMatch() does. so strictly speaking this doesn't work as the language binding in scheme but if anyone wants to try, you could use it perhaps.

The code snippets are available here.

just to share this with you.

February 12, 2012

Birthday

何度目かの誕生日にあった出来事。


  • 下の子の水疱瘡は進行中
  • 上の子がインフルエンザを患う
  • 上の子が熱性けいれんで救急車に運ばれる
  • 初救急車乗車
いろいろしんどい一日だった。

November 23, 2011

SPPUSH for CyanogenMod

application/vnd.wap.emn+wbxmlなContent TypeのWAP PUSHを受け取った際に、jp.co.nttdocomo.carriermail/.SMSServiceを呼ぶだけの簡単なアプリをマーケットに上げてみた。CM7.2以降じゃないと動きません。理由はこのへん

FreeXperiaProject系のROMだとFXP046以降で動作します。

November 16, 2011

Rendering on Emacs stopped working on GNOME3

It happens after "suspending" from Emacs with C-z or evaluating (suspend-frame) or whatever.  though it still accepts inputs from the keyboard. and still works fine on KDE say. so the problem may be in GNOME perhaps.

If you are facing unfortunately, there are the way to be recovered from this situation; try C-x 5 2 to make an frame. you will get back the well-rendered window there and C-x 5 1 on new frame to get rid of the broken window. it saves you and your modified files.

To avoid this situation forever, I have decided to have an advice for suspend-frame in my .emacs as a workaround like this:

(defadvice suspend-frame (around my-suspend-frame () activate)
  (if (y-or-n-p "frame is gonna iconify ")
      ad-do-it))
Enjoy,