• emacs设置字体


    * C-h f set-default-font

     set-default-font is an alias for `set-frame-font' in `frame.el'.

    (set-default-font FONT &optional KEEP-SIZE FRAMES)

    This function is obsolete since 23.1;
    use `set-frame-font' instead.

    Set the default font to FONT.
    When called interactively, prompt for the name of a font, and use
    that font on the selected frame.  When called from Lisp, FONT
    should be a font name (a string), a font object, font entity, or
    font spec.

    If KEEP-SIZE is nil, keep the number of frame lines and columns
    fixed.  If KEEP-SIZE is non-nil (or with a prefix argument), try
    to keep the current frame size fixed (in pixels) by adjusting the
    number of lines and columns.

    If FRAMES is nil, apply the font to the selected frame only.
    If FRAMES is non-nil, it should be a list of frames to act upon,
    or t meaning all graphical frames.  Also, if FRAME is non-nil,
    alter the user's Customization settings as though the
    font-related attributes of the `default' face had been "set in
    this session", so that the font is applied to future frames.

    * C-h f set-frame-font
    set-frame-font is an interactive compiled Lisp function in `frame.el'.

    (set-frame-font FONT &optional KEEP-SIZE FRAMES)

    Set the default font to FONT.
    When called interactively, prompt for the name of a font, and use
    that font on the selected frame.  When called from Lisp, FONT
    should be a font name (a string), a font object, font entity, or
    font spec.

    If KEEP-SIZE is nil, keep the number of frame lines and columns
    fixed.  If KEEP-SIZE is non-nil (or with a prefix argument), try
    to keep the current frame size fixed (in pixels) by adjusting the
    number of lines and columns.

    If FRAMES is nil, apply the font to the selected frame only.
    If FRAMES is non-nil, it should be a list of frames to act upon,
    or t meaning all graphical frames.  Also, if FRAME is non-nil,
    alter the user's Customization settings as though the
    font-related attributes of the `default' face had been "set in
    this session", so that the font is applied to future frames.

    * 使用的字体
    字体的下载位置:

    * 查看在emacs中字体的名字
    使用 "M-x set-frame-font RET Tab Tab" 可以看到一个字体列表,从而确定字体的名字。
    用鼠标点击 列表中的一行,就可以应用这个字体。

    * .emacs设置
    使用 set-default-font (23.1 以前版本),set-frame-font (23.1开始) 在 ~/.emacs 里添加:
     (set-frame-font "-microsoft-Mac雅黑-normal-normal-normal-*-*-*-*-*-*-0-iso10646-1")

    在行末用C-x C-e来运行即可,查看字体的效果


    ?怎么指定字体的大小
    现在能用C-x C = 来增大字体

  • 相关阅读:
    WWF中关于External Data Exchange Service的错误
    通用异常处理框架(转载)
    追MM和23种设计模式(转载)
    编译:XAML与程序代码结合(转载)
    异步编程*(转载)
    出糗~又是工作流!
    由WorkflowOwnershipException 异常,联想出的部署犯案
    Nullable类型,C#溢出检查,typeof运算符和运算符的重载 分类: C# 20121028 19:50 648人阅读 评论(0) 收藏
    我的程序员之路(九)参加郑州微软MVP宣讲会后的一些思考
    C#结构的学习
  • 原文地址:https://www.cnblogs.com/vipzrx/p/3455840.html
Copyright © 2020-2023  润新知