Giter Club home page Giter Club logo

Comments (7)

zephray avatar zephray commented on July 19, 2024

我本地的版本已经修改为两种5_8的字型和一种6_12的字体了,12*12的GB2312字体也已经实现,我稍后同步上来

在 2014年7月17日,23:38,"Star Brilliant" [email protected] 写道:

看了视频演示我决定贡献一套点阵字体。看了 font.h 发现有两种规格的字型,但是注释里只提到了 12x6 一种。

请问另一种字型的规格是什么?长和宽是多少?字与字之间要不要预留1像素宽度?

另外,将来的硬件条件是否允许中文呢?


Reply to this email directly or view it on GitHub.

from arithmax.

m13253 avatar m13253 commented on July 19, 2024

GB2312 可以直接用文泉驿的点阵字,虽然质量不咋的,但是是自由的。
我也做一个吧。

P.S. 难道字体这样重复使用的数据不应该把定义单独放到一个 .c 文件中然后用 .h 来声明,而不是把定义放到 .h 里每次使用都占用一倍的内存吗?

from arithmax.

zephray avatar zephray commented on July 19, 2024

.h只被引用了一次,也就占用了一次。事实上多次引用是会报错的

在 2014年7月18日,12:01,"Star Brilliant" [email protected] 写道:

GB2312 可以直接用文泉驿的点阵字,虽然质量不咋的,但是是自由的。
我也做一个吧。

P.S. 难道字体这样重复使用的数据不应该把定义单独放到一个 .c 文件中然后用 .h 来声明,而不是把定义放到 .h 里每次使用都占用一倍的内存吗?


Reply to this email directly or view it on GitHub.

from arithmax.

m13253 avatar m13253 commented on July 19, 2024

.h只被引用了一次,也就占用了一次。事实上多次引用是会报错的

为什么不用 .c 呢?编译也省事啊。而且修改了一个文件也不用全部编译嘛。

还有,我做好 6x12 的字体了,做了两种风格的,等一下发给你看看?

from arithmax.

m13253 avatar m13253 commented on July 19, 2024

请看看我点了一整天的两个 6x12 字体:
https://github.com/m13253/ArithMax/tree/master/Software/AMEv3/Resources/Fonts

Adobe BDF 格式(纯文本,Linux 下能直接用),SBMonoH 是主打,SBMonoS 是备胎。

from arithmax.

m13253 avatar m13253 commented on July 19, 2024

又添加了两套 6x8 字体,均为 Adobe BDF 格式,Linux 下可以直接查看。

https://github.com/m13253/ArithMax/tree/master/Software/AMEv3/Resources/Fonts

SBMonoH,6x12,主打,仿 Helvetica、DejaVu Sans Mono
SBMonoM,6x8,主打,仿 Monaco、DejaVu Sans Mono、Helvetica

SBMonoS,6x12,备用,仿 Segoe UI、Droid Sans Mono、Ubuntu Mono
SBMonoU,6x8(实际小写和数字只用了 5x8),备用,仿 Ubuntu Mono、Monaco

由于 BDF 格式是纯文本,可以用程序很方便地转换成 C 程序源码。不过 BDF 是按行存储的,font.h 是按列存储的,转换的时候要注意一下。
先不管用得上用不上,我希望你先 pull 了我这几个文件。需要我发 pull request 吗?

另外,要不要斜体字、非等宽字以及数学用字?我可以一并设计了。

from arithmax.

m13253 avatar m13253 commented on July 19, 2024

刚刚被坑了,原来不是在 font.h 里而是在 image.h 里……
试了一下 8x6 的点阵。你说的是 7x6 也就是说最右一列留空。
但是我在设计的时候是考虑到最右一列的(有几个符号要用)
这有点不太方便。
我已经把 bdf 转 C 的程序丢 https://github.com/m13253/ArithMax/tree/master/Software/AMEv3/Resources/Fonts 这里了。
另外 12x6 的规格是怎么样的?
我这些字体以 LGPL 授权和 AME 是否相容呢?

from arithmax.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.