Comments (5)
Ok, I tested on X11 too. Results are very interesting.
A picture makes a thousand words, so:
The font size is very different between X11, acme in OS X, and TextEdit in OS X. 10p in X11 is sized approximately like 14p in acme in OS X.
Note however, that the letter aspect ratio is different. X11 letters are less tall. The X11 letters are rendered correctly though. The problem with 'g' is not present in X11.
Font size in acme on OS X and TextEdit on OS X is almost the same but not quite.
Btw, these are the same .ttf fonts on both OS X and X11/Linux.
from plan9port.
Same test but with Lucida Grande Mono:
from plan9port.
the X11 code has the DPI hardcoded for 96, also hinting was disabled
recently.
I was toying with the prospect of rewriting it using pango, as freetype2
wasn't really fun last time..
On Wed, Feb 18, 2015 at 7:29 PM, Aram Hăvărneanu [email protected]
wrote:
Same test but with Lucida Grande Mono:
—
Reply to this email directly or view it on GitHub
#18 (comment).
from plan9port.
Using pango instead of freetype would be unfortunate, but I believe you when you say freetype is hard to work with.
crimson:aram$ apt-rdepends --build-depends --follow=DEPENDS libpango-1.0-0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpango-1.0-0
Build-Depends: autotools-dev
Build-Depends: cdbs (>= 0.4.93)
Build-Depends: debhelper (>= 8.1.3)
Build-Depends: dh-autoreconf
Build-Depends: gnome-pkg-tools (>= 0.11)
Build-Depends: gobject-introspection (>= 0.9.12-4~)
Build-Depends: gtk-doc-tools (>= 1.15)
Build-Depends: libcairo2-dev (>= 1.12.10)
Build-Depends: libfontconfig1-dev (>= 2.10.91)
Build-Depends: libfreetype6-dev (>= 2.1.7)
Build-Depends: libgirepository1.0-dev (>= 0.9.5)
Build-Depends: libglib2.0-dev (>= 2.34.0)
Build-Depends: libharfbuzz-dev (>= 0.9.9)
Build-Depends: libthai-dev (>= 0.1.9)
Build-Depends: libx11-dev (>= 2:1.3.3-2)
Build-Depends: libxft-dev (>= 2.1.14-2)
Build-Depends: libxrender-dev (>= 1:0.9.0.2-2)
Build-Depends: libxt-dev
Build-Depends: perl
Build-Depends: pkg-config
Build-Depends-Indep: libglib2.0-doc
crimson:aram$ apt-rdepends --build-depends --follow=DEPENDS freetype
Reading package lists... Done
Building dependency tree
Reading state information... Done
freetype
Build-Depends: autoconf
Build-Depends: automake
Build-Depends: bzip2
Build-Depends: debhelper (>= 8.9.4)
Build-Depends: docbook-to-man
Build-Depends: gettext (>= 0.10.36-2)
Build-Depends: libpng-dev
Build-Depends: libtool
Build-Depends: libx11-dev
Build-Depends: libz-dev
Build-Depends: quilt
Build-Depends: x11proto-core-dev
crimson:aram$
Hardcoding DPI in X11 explains the different font size, so one mystery is solved. The others remain, however.
from plan9port.
I don't remember that well, but I think X11 doesn't cut letters due to
https://github.com/9fans/plan9port/blob/master/src/cmd/fontsrv/x11.c#L83
and
https://github.com/9fans/plan9port/blob/master/src/cmd/fontsrv/x11.c#L132-L134
which I shamelesly took from the then OSX version.
from plan9port.
Related Issues (20)
- O_LARGEFILE workaround broken on aarch64
- Seg. Fault with 9pserve on MacBook Pro M1 HOT 3
- nfs over tcp support for vnfs
- more threadmaybackground needed
- ACME: per-window environment variables HOT 2
- Unable to install on debian HOT 6
- devdraw: Cursor reverts to macOS default on MacBook with notch
- Cant use 9l -- ld cannot find -l9 HOT 4
- libbio brdline error handling
- sam: regexp match issue
- acme -a, on MacOS, is unresponsive after changing window size
- can't pass both -b/-c and -r to INSTALL
- can not build under gcc-less linux HOT 4
- 9pfuse not working on Mac OS Sonoma
- Belorussian link does not work HOT 2
- No pointer warping in acme in virtual Fedora 39
- Issue triage
- 9pserve: msize not optimal
- Build fails with LTO HOT 3
- kcmp in cmd/sort.c conflicts with FreeBSD system header file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plan9port.