Extracting glyphs from an OpenType file
In order to create a compact representation of a monogram, I wanted to get the raw
curve info from the Latim Modern Roman
font, not the rendered glyphs.
This article documents how I did that.
In order to create a compact representation of a monogram, I wanted to get the raw
curve info from the Latim Modern Roman
font, not the rendered glyphs.
This article documents how I did that.
The FreeBSD port is relatively old, and doesn’t support SDL 2.2. So I built version 1.22.0, which is current at the time of writing.
The requirements are the same als the port.
Recently I saw that you could convert python scripts into executable with the
help of cython
, and I had to try that.
As an engineer, I write a lot of small python programs as tools for specific tasks. Generally, these are not large programs. Most of them are below 100 lines of code (“LOC”, as measured by cloc), although there are a few in the 300−400 LOC range.
In this article, I will present some observations about these, and draw some conclusion from them.
Since Python 3.11.0 came out recently, I wanted to compare its speed with 3.9.15 on some of my own “benchmark” programs.
Both versions are in the default configuration as built by the FreeBSD ports system.
TL;DR Python 3.11 yielded speed improvements in the order of 25% in my tests.
This is a repeat of the test I ran in 2020 on the same desktop hardware, but now using the …
When I originally got this machine, I needed it for $WORK. That is no longer the case, so I wanted to install FreeBSD 13.1 in combination with ZFS to gain experience with the latter.
TL;DR Nice and quiet. Slightly faster than my i7-7700 workstation. Except for wifi, everything works.
In this article we will discuss a faster and more efficient way to get only the first item from a view object in Python.
Based on a question I ran into at work, I wanted to explore the influence of parameters like cross-section, wall thickness and laminate lay-up on the resonance frequency of a carbon fiber composite tube.
The goal of this exercise is to determine which of the parameters are dominant.
As I’ve written about before (see engineering), I often use CalculiX for structural mechanics calculations of products made from composites. These often involve calculating lots of different combinations of materials, lay-ups and load cases. For convenience and for them being self-contained, each variant is usually in a different directory.
So when I find an improvement to e.g. a pre.fbd
, Makefile
or
job.inp
, I want modify all of the other instances as well.
This is where sed
(which stands for “stream editor”) comes into play.