unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5667: 23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk
@ 2010-03-01 22:14 Jae-hyeon Park
       [not found] ` <handler.5667.B.12674817565232.ack@debbugs.gnu.org>
  2010-04-01  7:59 ` Kenichi Handa
  0 siblings, 2 replies; 12+ messages in thread
From: Jae-hyeon Park @ 2010-03-01 22:14 UTC (permalink / raw)
  To: 5667

I am sorry if you are seeing this report more than once as I have
already posted about this problem to emacs-devel (which I suppose was
not the right list for a bug report).

I use the baekmuk bitmap font (available as the xfonts-baekmuk package
in debian for instance) to display Korean characters in emacs.  When
there are many Korean characters in a buffer, moving the cursor among
the Korean characters takes a long time (like a few seconds on my laptop
which is a fairly new hardware).  It is weird that this symptom occurs
only if I use this particular font.  However, the same font causes no
trouble when I am using emacs 22.

How to reproduce:

1) Start emacs with

    $ emacs -Q -xrm 'Emacs.FontBackend: x' &

2) In the scratch buffer, evaluate the following code

    (create-fontset-from-fontset-spec
     "-misc-fixed-medium-r-normal--15-140-75-75-c-90-fontset-baekmuk,
      ascii:-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1")
    (set-fontset-font "fontset-baekmuk" 'korean-ksc5601
     "-baekmuk-gulim-medium-r-normal--18-180-75-75-m-180-ksc5601.1987-0")
    (set-frame-font "fontset-baekmuk")

3) In the same frame, fill a whole emacs window with Korean characters.
   For instance, open the sample Korean text file that can be downloaded
   from https://bugs.launchpad.net/bugs/471597.

4) Try to move the cursor downwards by pressing C-n several times


In GNU Emacs 23.1.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.3)
 of 2010-03-01 on aida
Windowing system distributor `The X.Org Foundation', version 11.0.10604000
configured using `configure  '--enable-profiling' '--with-xpm=no' '--with-gif=no' '--with-tiff=no''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=uim
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<down-mouse-2> <mouse-2> <backspace> C-j M-x s e t 
- v a <tab> <return> m a i l - s p e <tab> <return> 
t <return> <down-mouse-1> <mouse-1> C-h v m e s s a 
g e <tab> C-g C-h v m a i l - s p e <tab> <return> 
<help-echo> <help-echo> <down-mouse-1> <mouse-1> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <se
nd-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
Loading sendmail...done
Making completion list...
Quit
Type C-x 1 to delete the help window, C-M-v to scroll help.

Load-path shadows:
None found.

Features:
(shadow sort mail-extr message ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
time-date mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util
hashcash mail-utils emacsbug pp help-mode view cus-edit easymenu
wid-edit sendmail regexp-opt cus-start cus-load help-fns tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face files text-properties overlay md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind system-font-setting
font-render-setting gtk x-toolkit x multi-tty emacs)







^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#5667: Acknowledgement (23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk)
       [not found] ` <handler.5667.B.12674817565232.ack@debbugs.gnu.org>
@ 2010-03-27 16:45   ` Jae-hyeon Park
  2011-09-18 12:15     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Jae-hyeon Park @ 2010-03-27 16:45 UTC (permalink / raw)
  To: 5667

[-- Attachment #1: Type: text/plain, Size: 158 bytes --]

I found a workaround or a possible fix.  The slowdown goes away if I
add to font-encoding-alist an entry for the registry ksx1001.1998.  A
patch is attached.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: emacs-23.1.94.diff --]
[-- Type: text/x-diff, Size: 442 bytes --]

--- emacs-23.1.94.orig/lisp/international/fontset.el	2010-03-11 03:20:33.000000000 +0100
+++ emacs-23.1.94/lisp/international/fontset.el	2010-03-27 17:16:47.681744851 +0100
@@ -59,6 +59,7 @@
 	("jisx0208" . japanese-jisx0208)
 	("jisx0201" . jisx0201)
 	("jisx0212" . japanese-jisx0212)
+	("ksx1001" . korean-ksc5601)
 	("ksc5601.1987" . korean-ksc5601)
 	("cns11643.1992.*1" . chinese-cns11643-1)
 	("cns11643.1992.*2" . chinese-cns11643-2)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#5667: 23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk
  2010-03-01 22:14 bug#5667: 23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk Jae-hyeon Park
       [not found] ` <handler.5667.B.12674817565232.ack@debbugs.gnu.org>
@ 2010-04-01  7:59 ` Kenichi Handa
  2010-04-01  8:31   ` Jae-hyeon Park
  1 sibling, 1 reply; 12+ messages in thread
From: Kenichi Handa @ 2010-04-01  7:59 UTC (permalink / raw)
  To: Jae-hyeon Park; +Cc: 5667

Very sorry for the late response on this matter.

In article <87ljeb7kpr.fsf@desy.de>, Jae-hyeon Park <jae-hyeon.park@desy.de> writes:

> I am sorry if you are seeing this report more than once as I have
> already posted about this problem to emacs-devel (which I suppose was
> not the right list for a bug report).

> I use the baekmuk bitmap font (available as the xfonts-baekmuk package
> in debian for instance) to display Korean characters in emacs.  When
> there are many Korean characters in a buffer, moving the cursor among
> the Korean characters takes a long time (like a few seconds on my laptop
> which is a fairly new hardware).  It is weird that this symptom occurs
> only if I use this particular font.  However, the same font causes no
> trouble when I am using emacs 22.

> How to reproduce:

> 1) Start emacs with

>     $ emacs -Q -xrm 'Emacs.FontBackend: x' &

> 2) In the scratch buffer, evaluate the following code

>     (create-fontset-from-fontset-spec
>      "-misc-fixed-medium-r-normal--15-140-75-75-c-90-fontset-baekmuk,
>       ascii:-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1")
>     (set-fontset-font "fontset-baekmuk" 'korean-ksc5601
>      "-baekmuk-gulim-medium-r-normal--18-180-75-75-m-180-ksc5601.1987-0")
>     (set-frame-font "fontset-baekmuk")

> 3) In the same frame, fill a whole emacs window with Korean characters.
>    For instance, open the sample Korean text file that can be downloaded
>    from https://bugs.launchpad.net/bugs/471597.

> 4) Try to move the cursor downwards by pressing C-n several times

I've just confirmed this problem.  Strangely that slowness
doesn't happen with the other fonts (e.g. daewoo-mincho).
I'm now investigating what is wrong.

---
Kenichi Handa
handa@m17n.org






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#5667: 23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk
  2010-04-01  7:59 ` Kenichi Handa
@ 2010-04-01  8:31   ` Jae-hyeon Park
  0 siblings, 0 replies; 12+ messages in thread
From: Jae-hyeon Park @ 2010-04-01  8:31 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: 5667

Kenichi Handa, on 2010-04-01 09:59 +0200, said:

> Very sorry for the late response on this matter.

No problem.

> I've just confirmed this problem.  Strangely that slowness
> doesn't happen with the other fonts (e.g. daewoo-mincho).
> I'm now investigating what is wrong.

I have uploaded a patch to the bug tracker.  The difference between
baekmuk and daewoo is the xfont encoding registry.  Baekmuk has
ksx1001.1998 and daewoo has ksc5601.1987.  [xfonts-baekmuk package
installs also aliases with registry ksc5601.1987.]

Apart from the above temporary fix, another question is: I don't know
whether or not emacs is expected to slow down when it sees a font with
an unknown (to emacs) encoding.

Cheers,
Jae-hyeon






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#5667: Acknowledgement (23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk)
  2010-03-27 16:45   ` bug#5667: Acknowledgement (23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk) Jae-hyeon Park
@ 2011-09-18 12:15     ` Lars Magne Ingebrigtsen
  2011-09-18 15:44       ` bug#5667: 23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk Jae-hyeon Park
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-18 12:15 UTC (permalink / raw)
  To: Jae-hyeon Park; +Cc: 5667

Jae-hyeon Park <jae-hyeon.park@desy.de> writes:

> I found a workaround or a possible fix.  The slowdown goes away if I
> add to font-encoding-alist an entry for the registry ksx1001.1998.  A
> patch is attached.
>
> --- emacs-23.1.94.orig/lisp/international/fontset.el	2010-03-11 03:20:33.000000000 +0100
> +++ emacs-23.1.94/lisp/international/fontset.el	2010-03-27 17:16:47.681744851 +0100
> @@ -59,6 +59,7 @@
>  	("jisx0208" . japanese-jisx0208)
>  	("jisx0201" . jisx0201)
>  	("jisx0212" . japanese-jisx0212)
> +	("ksx1001" . korean-ksc5601)
>  	("ksc5601.1987" . korean-ksc5601)

As far as I can tell, this patch was never applied.  Was it forgotten,
or was it the wrong solution?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#5667: 23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk
  2011-09-18 12:15     ` Lars Magne Ingebrigtsen
@ 2011-09-18 15:44       ` Jae-hyeon Park
  2011-09-21 18:50         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Jae-hyeon Park @ 2011-09-18 15:44 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: 5667

Lars Magne Ingebrigtsen, on 2011-09-18 14:15 +0200, said:

> Jae-hyeon Park <jae-hyeon.park@desy.de> writes:
>
>> I found a workaround or a possible fix.  The slowdown goes away if I
>> add to font-encoding-alist an entry for the registry ksx1001.1998.  A
>> patch is attached.
>>
>> --- emacs-23.1.94.orig/lisp/international/fontset.el	2010-03-11 03:20:33.000000000 +0100
>> +++ emacs-23.1.94/lisp/international/fontset.el	2010-03-27 17:16:47.681744851 +0100
>> @@ -59,6 +59,7 @@
>>  	("jisx0208" . japanese-jisx0208)
>>  	("jisx0201" . jisx0201)
>>  	("jisx0212" . japanese-jisx0212)
>> +	("ksx1001" . korean-ksc5601)
>>  	("ksc5601.1987" . korean-ksc5601)
>
> As far as I can tell, this patch was never applied.  Was it forgotten,
> or was it the wrong solution?

If you ask me, I don't know.  I am not an emacs developer.  In my
opinion, adding the ksx1001 entry is not a totally bad idea since it
supersedes ksc5601 or at least the name was changed so.
http://en.wikipedia.org/wiki/KS_X_1001

PS
Do you speak Korean?  ;-)

Cheers,
Jae-hyeon





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#5667: 23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk
  2011-09-18 15:44       ` bug#5667: 23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk Jae-hyeon Park
@ 2011-09-21 18:50         ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-21 18:50 UTC (permalink / raw)
  To: Jae-hyeon Park; +Cc: 5667

Jae-hyeon Park <jae-hyeon.park@desy.de> writes:

> If you ask me, I don't know.  I am not an emacs developer.

No, I was asking the other Emacs developers who read the bug tracker.
:-)

> In my opinion, adding the ksx1001 entry is not a totally bad idea
> since it supersedes ksc5601 or at least the name was changed so.
> http://en.wikipedia.org/wiki/KS_X_1001
>
> PS
> Do you speak Korean?  ;-)

Nope.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#5667: Simple fix to font-encoding-alist
       [not found] <87ehv4rip9.fsf@aida.tu-dresden.de>
@ 2012-01-17 14:31 ` Chong Yidong
  2012-03-10  9:45   ` Chong Yidong
  2012-06-15 20:39 ` bug#11722: 24.1; cannot set-frame-font to a fontset Jae-hyeon Park
  1 sibling, 1 reply; 12+ messages in thread
From: Chong Yidong @ 2012-01-17 14:31 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: Jae-hyeon Park, 5667

Hi Handa-san,

Did you manage to investigate the slowdown?  If you won't be able to get
around to it soon, what about applying the workaround that Jae-hyeon
suggested?



Jae-hyeon Park <jae-hyeon.park@tu-dresden.de> writes:

> Hello,
>
> may I draw your attention to an old bug that I reported?
>
>     http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5667
>
> The problem is that cursor movement slows down if one uses a bitmap
> Korean font in the ksx1001 encoding.  This still happens with the
> pretest 24.0.92.  I attached a patch that adds one line to fontset.el.
> I think this fix is simple enough to be incorporated into the pretest.
> Thanks.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#5667: Simple fix to font-encoding-alist
  2012-01-17 14:31 ` bug#5667: Simple fix to font-encoding-alist Chong Yidong
@ 2012-03-10  9:45   ` Chong Yidong
  2012-03-10 11:01     ` Kenichi Handa
  0 siblings, 1 reply; 12+ messages in thread
From: Chong Yidong @ 2012-03-10  9:45 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: Jae-hyeon Park, 5667

Chong Yidong <cyd@gnu.org> writes:

> Hi Handa-san,
>
> Did you manage to investigate the slowdown?  If you won't be able to get
> around to it soon, what about applying the workaround that Jae-hyeon
> suggested?

I've committed Jae-hyeon's patch.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#5667: Simple fix to font-encoding-alist
  2012-03-10  9:45   ` Chong Yidong
@ 2012-03-10 11:01     ` Kenichi Handa
  0 siblings, 0 replies; 12+ messages in thread
From: Kenichi Handa @ 2012-03-10 11:01 UTC (permalink / raw)
  To: Chong Yidong; +Cc: jae-hyeon.park, 5667

In article <87d38kg56d.fsf@gnu.org>, Chong Yidong <cyd@gnu.org> writes:

> Chong Yidong <cyd@gnu.org> writes:
> > Hi Handa-san,
> >
> > Did you manage to investigate the slowdown?  If you won't be able to get
> > around to it soon, what about applying the workaround that Jae-hyeon
> > suggested?

> I've committed Jae-hyeon's patch.

Thank you.  I couldn't find the reason of that slowdown
easigly and have forgotten to work on it further.  As it
seems the patch is harmless, I agree with installing it.

---
Kenichi Handa
handa@m17n.org





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#11722: 24.1; cannot set-frame-font to a fontset
       [not found] <87ehv4rip9.fsf@aida.tu-dresden.de>
  2012-01-17 14:31 ` bug#5667: Simple fix to font-encoding-alist Chong Yidong
@ 2012-06-15 20:39 ` Jae-hyeon Park
  2019-11-01 16:31   ` Lars Ingebrigtsen
  1 sibling, 1 reply; 12+ messages in thread
From: Jae-hyeon Park @ 2012-06-15 20:39 UTC (permalink / raw)
  To: 11722

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

1) start emacs with:

    $ emacs -Q

2) define a fontset by evaluating in the scratch buffer:

    (create-fontset-from-ascii-font
     "-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1" nil "test")
    (set-fontset-font "fontset-test" 'korean-ksc5601
     "-daewoo-gothic-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0")

3) write some Korean letters in the scratch buffer, whose font will be
   set in the next steps

    ;; 쫄지마

4) set and check the frame font with:

    (set-frame-parameter nil 'font "fontset-test")
         => nil
    (frame-parameter nil 'font)
         => "-Misc-Fixed-normal-normal-normal-*-14-*-*-*-c-70-iso10646-1"
    (frame-parameter nil 'font-parameter)
         => "fontset-test"

5) alternatively, set and check the frame font with:

    (set-frame-font "fontset-test")
         => nil
    (frame-parameter nil 'font)
         => "-Misc-Fixed-normal-normal-normal-*-14-*-*-*-c-70-iso10646-1"
    (frame-parameter nil 'font-parameter)
         => "-misc-fixed-medium-r-normal--14-*-75-75-c-70-iso8859-1"


In emacs 23.3.1, both methods 4) and 5) work, and the "font-parameter"
frame-parameter is set to the same value by both methods.  In emacs
24.1, method 5) does not select the specified Korean font, and the
font-parameter has different values in 4) and 5).  One can notice that
the Korean characters look different after evaluating the first lines in
4) and 5).


In GNU Emacs 24.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.3)
 of 2012-06-14 on aida
Windowing system distributor `The X.Org Foundation', version 11.0.11202000
Configured using:
 `configure '--prefix=/usr' '--build=x86_64-pc-linux-gnu'
 '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man'
 '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc'
 '--localstatedir=/var/lib' '--libdir=/usr/lib64'
 '--disable-dependency-tracking' '--program-suffix=-emacs-24'
 '--infodir=/usr/share/info/emacs-24'
 '--enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../lib64'
 '--with-gameuser=games' '--without-compress-info'
 '--disable-maintainer-mode' '--without-hesiod' '--without-kerberos'
 '--without-kerberos5' '--with-gpm' '--with-dbus' '--with-gnutls'
 '--without-xml2' '--without-selinux' '--without-wide-int'
 '--with-sound' '--with-x' '--without-ns' '--without-gconf'
 '--without-gsettings' '--with-toolkit-scroll-bars' '--with-gif'
 '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm'
 '--without-imagemagick' '--with-xft' '--without-libotf'
 '--without-m17n-flt' '--with-x-toolkit=gtk3'
 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu'
 'CFLAGS=-march=native -O2 -pipe -O2' 'LDFLAGS=-Wl,-O1 -Wl,--sort-common
 -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o r t - e m a <tab> <return>

Recent messages:
uim.el: starting uim-el-helper-agent... done
uim.el: starting uim-el-agent... done
Loading paren...done
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
/usr/share/emacs/site-lisp/cjk-latex/thai-word hides /usr/share/emacs/24.1/lisp/language/thai-word

Features:
(shadow sort flyspell ispell mail-extr gnus-msg gnus-art mm-uu mml2015
epg-config mm-view mml-smime smime password-cache dig mailcap gnus-sum
nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec
gnus-int gnus-range gnus-win gnus gnus-ems nnheader gnus-util wid-edit
emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils printing
ps-print ps-def lpr paren cus-start cus-load comint regexp-opt
ansi-color ring reduce-mode reduce-run dbus xml uim-leim uim advice
help-fns advice-preload uim-helper uim-candidate uim-preedit uim-key
uim-util uim-debug uim-keymap uim-var uim-version hangul hanja-util
quail help-mode easymenu view korea-util site-gentoo tex-site auto-loads
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#11722: 24.1; cannot set-frame-font to a fontset
  2012-06-15 20:39 ` bug#11722: 24.1; cannot set-frame-font to a fontset Jae-hyeon Park
@ 2019-11-01 16:31   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 12+ messages in thread
From: Lars Ingebrigtsen @ 2019-11-01 16:31 UTC (permalink / raw)
  To: Jae-hyeon Park; +Cc: 11722

Jae-hyeon Park <jae-hyeon.park@tu-dresden.de> writes:

> 1) start emacs with:
>
>     $ emacs -Q
>
> 2) define a fontset by evaluating in the scratch buffer:
>
>     (create-fontset-from-ascii-font
>      "-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1" nil "test")
>     (set-fontset-font "fontset-test" 'korean-ksc5601
>      "-daewoo-gothic-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0")
>
> 3) write some Korean letters in the scratch buffer, whose font will be
>    set in the next steps
>
>     ;; 쫄지마
>
> 4) set and check the frame font with:
>
>     (set-frame-parameter nil 'font "fontset-test")
>          => nil
>     (frame-parameter nil 'font)
>          => "-Misc-Fixed-normal-normal-normal-*-14-*-*-*-c-70-iso10646-1"
>     (frame-parameter nil 'font-parameter)
>          => "fontset-test"
>
> 5) alternatively, set and check the frame font with:
>
>     (set-frame-font "fontset-test")
>          => nil
>     (frame-parameter nil 'font)
>          => "-Misc-Fixed-normal-normal-normal-*-14-*-*-*-c-70-iso10646-1"
>     (frame-parameter nil 'font-parameter)
>          => "-misc-fixed-medium-r-normal--14-*-75-75-c-70-iso8859-1"
>
> In emacs 23.3.1, both methods 4) and 5) work, and the "font-parameter"
> frame-parameter is set to the same value by both methods.  In emacs
> 24.1, method 5) does not select the specified Korean font, and the
> font-parameter has different values in 4) and 5).  One can notice that
> the Korean characters look different after evaluating the first lines in
> 4) and 5).

I'm not quite sure what I'm looking for here, but the first step in 4)
and 5) produced Korean text that looks identical to me.

However, (frame-parameter nil 'font-parameter) does return nil for me in
5), so I guess there's still a bug here?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-11-01 16:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87ehv4rip9.fsf@aida.tu-dresden.de>
2012-01-17 14:31 ` bug#5667: Simple fix to font-encoding-alist Chong Yidong
2012-03-10  9:45   ` Chong Yidong
2012-03-10 11:01     ` Kenichi Handa
2012-06-15 20:39 ` bug#11722: 24.1; cannot set-frame-font to a fontset Jae-hyeon Park
2019-11-01 16:31   ` Lars Ingebrigtsen
2010-03-01 22:14 bug#5667: 23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk Jae-hyeon Park
     [not found] ` <handler.5667.B.12674817565232.ack@debbugs.gnu.org>
2010-03-27 16:45   ` bug#5667: Acknowledgement (23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk) Jae-hyeon Park
2011-09-18 12:15     ` Lars Magne Ingebrigtsen
2011-09-18 15:44       ` bug#5667: 23.1.93; cursor movement in Korean text is slow with xfonts-baekmuk Jae-hyeon Park
2011-09-21 18:50         ` Lars Magne Ingebrigtsen
2010-04-01  7:59 ` Kenichi Handa
2010-04-01  8:31   ` Jae-hyeon Park

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).