* Xft font with different pixelsize?
@ 2007-04-23 20:27 Yuan MEI
0 siblings, 0 replies; 3+ messages in thread
From: Yuan MEI @ 2007-04-23 20:27 UTC (permalink / raw)
To: emacs-devel
Hi,
I just tried Emacs-23 with xft. Previously I used X core font,
.Xdefaults:
Emacs.Fontset-0: -*-bitstream vera sans mono-medium-r-normal-*-12-*-*-*-*-*-fontset-utf8,\
utf-8:-*-wcd-medium-r-normal-*-14-*-*-*-*-*-iso10646*-*
Emacs.Font: fontset-utf8
.emacs:
(set-fontset-font
"fontset-utf8" 'han
"-*-wcd-*-*-*-*-14-*-*-*-*-*-gbk-0" nil 'prepend)
My purpose is to use pixelsize 12 for normal text and pixel 14 for
another language
And for xft, I tried
(set-fontset-font
"fontset-utf8" 'han
'("WCD" . "unicode-bmp") nil 'prepend)
which works but the pixelsize is 12 as used for default font
"bitstream vera sans mono". And ("WCD-14" . "unicode-bmp") does not
work at all.
So, is there anyway to set different pixelsize for different Unicode
range characters using xft?
Thanks.
--
Yuan MEI
^ permalink raw reply [flat|nested] 3+ messages in thread
* Xft font with different pixelsize?
@ 2007-04-25 13:13 Kenichi Handa
2007-04-25 13:36 ` Leo
0 siblings, 1 reply; 3+ messages in thread
From: Kenichi Handa @ 2007-04-25 13:13 UTC (permalink / raw)
To: emacs-devel
> My purpose is to use pixelsize 12 for normal text and pixel 14 for
> another language
>
> And for xft, I tried
> (set-fontset-font
> "fontset-utf8" 'han
> '("WCD" . "unicode-bmp") nil 'prepend)
> which works but the pixelsize is 12 as used for default font
> "bitstream vera sans mono". And ("WCD-14" . "unicode-bmp") does not
> work at all.
>
> So, is there anyway to set different pixelsize for different Unicode
> range characters using xft?
Please try this with the latest code.
(set-fontset-font
"fontset-utf8" 'han
"-*-WCD-*-*-*-*-14-*-*-*-*-*-iso10646-0" 'prepend)
Please note that fontset related code still doesn't accept
a font-config-like font name.
---
Kenichi Handa
handa@m17n.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Xft font with different pixelsize?
2007-04-25 13:13 Kenichi Handa
@ 2007-04-25 13:36 ` Leo
0 siblings, 0 replies; 3+ messages in thread
From: Leo @ 2007-04-25 13:36 UTC (permalink / raw)
To: emacs-devel
Dear Kenichi,
----- Kenichi Handa (2007-04-25) wrote:-----
>> My purpose is to use pixelsize 12 for normal text and pixel 14 for
>> another language
>>
>
>> And for xft, I tried
>> (set-fontset-font
>> "fontset-utf8" 'han
>> '("WCD" . "unicode-bmp") nil 'prepend)
>> which works but the pixelsize is 12 as used for default font
>> "bitstream vera sans mono". And ("WCD-14" . "unicode-bmp") does not
>> work at all.
>>
>> So, is there anyway to set different pixelsize for different Unicode
>> range characters using xft?
>
> Please try this with the latest code.
>
> (set-fontset-font
> "fontset-utf8" 'han
> "-*-WCD-*-*-*-*-14-*-*-*-*-*-iso10646-0" 'prepend)
>
> Please note that fontset related code still doesn't accept
> a font-config-like font name.
>
> ---
> Kenichi Handa
> handa@m17n.org
I was not able to compile the latest code. The error is:
,----
| ......
| font.o: In function `Ffont_drive_otf':
| /home/emacs/src/font.c:3425: undefined reference to `check_otf_features'
| collect2: ld returned 1 exit status
| make[1]: *** [temacs] Error 1
| make[1]: Leaving directory `/home/emacs/src'
| make: *** [src] Error 2
`----
regards,
--
Leo <sdl.web AT gmail.com> (GPG Key: 9283AA3F)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-25 13:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-23 20:27 Xft font with different pixelsize? Yuan MEI
-- strict thread matches above, loose matches on Subject: below --
2007-04-25 13:13 Kenichi Handa
2007-04-25 13:36 ` Leo
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.