Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14939)

Issue 108700043: Add an expert font tree interface

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 9 months ago by akobel
Modified:
9 years, 9 months ago
Reviewers:
pkx166h, janek, dak, news, Mark Polesky
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Add an expert font tree interface See http://lists.gnu.org/archive/html/lilypond-user/2014-07/msg00281.html for the goals; the proposed font tree interface allows for a very fine-grained mapping of fonts to LilyPond's default font-families as well as introducing new font-family symbols. Furthermore, it implements per-font scaling (e.g., to match the x-heights of different fonts used in the document). No attempt has been made for auto-detection of the x-height of a font; I guess that would require delving into the C++-Pango parts, which is above my threshold. expert font selection: first attempt allows to choose fonts used in a fine-grained manner, bypassing the default auto-generated pango-font-description strings add example for make-expert-font-tree as regtest

Patch Set 1 #

Patch Set 2 : remove erroneous \lyricmode to pass make check #

Total comments: 2

Patch Set 3 : docstring; renamed fonts-alist to font-spec-list #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -0 lines) Patch
A input/regression/font-expert-selection.ly View 1 1 chunk +93 lines, -0 lines 5 comments Download
M scm/font.scm View 1 2 1 chunk +57 lines, -0 lines 3 comments Download

Messages

Total messages: 22
pkx166h
Fails make check --snip-- regression/font-expert-selection.ly --snip-- Processing `/tmp/build-lilypond-autobuild/out/lybook-testdb/73/lily-16d682d4.ly' Parsing... Renaming input to: `/tmp/lilypond-autobuild/input/regression/font-expert-selection.ly' /tmp/lilypond-autobuild/input/regression/font-expert-selection.ly:84:31: error: ...
9 years, 9 months ago (2014-07-15 09:33:30 UTC) #1
akobel
remove erroneous \lyricmode to pass make check
9 years, 9 months ago (2014-07-15 10:07:34 UTC) #2
akobel
remove erroneous \lyricmode to pass make check
9 years, 9 months ago (2014-07-15 10:08:05 UTC) #3
dak
https://codereview.appspot.com/108700043/diff/20001/scm/font.scm File scm/font.scm (right): https://codereview.appspot.com/108700043/diff/20001/scm/font.scm#newcode240 scm/font.scm:240: (define-public (make-expert-font-tree fonts-alist factor) There is no doc string ...
9 years, 9 months ago (2014-07-16 09:20:45 UTC) #4
akobel
docstring; renamed fonts-alist to font-spec-list
9 years, 9 months ago (2014-07-16 12:57:40 UTC) #5
akobel
docstring; renamed fonts-alist to font-spec-list
9 years, 9 months ago (2014-07-16 12:59:02 UTC) #6
akobel
https://codereview.appspot.com/108700043/diff/20001/scm/font.scm File scm/font.scm (right): https://codereview.appspot.com/108700043/diff/20001/scm/font.scm#newcode240 scm/font.scm:240: (define-public (make-expert-font-tree fonts-alist factor) On 2014/07/16 09:20:45, dak wrote: ...
9 years, 9 months ago (2014-07-16 13:04:41 UTC) #7
pkx166h
On 16/07/14 14:04, perpeduumimmobile@gmail.com wrote: > > https://codereview.appspot.com/108700043/diff/20001/scm/font.scm > File scm/font.scm (right): > > https://codereview.appspot.com/108700043/diff/20001/scm/font.scm#newcode240 ...
9 years, 9 months ago (2014-07-16 17:13:27 UTC) #8
akobel
On 2014/07/16 17:13:27, J_lowe wrote: > > On 2014/07/16 09:20:45, dak wrote: > >> There ...
9 years, 9 months ago (2014-07-17 06:27:43 UTC) #9
dak
perpeduumimmobile@gmail.com writes: > On 2014/07/16 17:13:27, J_lowe wrote: >> > On 2014/07/16 09:20:45, dak wrote: ...
9 years, 9 months ago (2014-07-17 06:36:20 UTC) #10
akobel
On 2014/07/17 06:36:20, dak wrote: > mailto:perpeduumimmobile@gmail.com writes: > > > On 2014/07/16 17:13:27, J_lowe ...
9 years, 9 months ago (2014-07-17 07:06:02 UTC) #11
dak
perpeduumimmobile@gmail.com writes: > Two follow-up questions: > 1.) Is there a way to list all ...
9 years, 9 months ago (2014-07-17 08:28:36 UTC) #12
akobel
On 2014/07/17 08:28:36, dak wrote: > mailto:perpeduumimmobile@gmail.com writes: > > > Two follow-up questions: > ...
9 years, 9 months ago (2014-07-17 08:55:09 UTC) #13
dak
perpeduumimmobile@gmail.com writes: > That leaves me with only one more question: Is there any reason ...
9 years, 9 months ago (2014-07-17 09:13:54 UTC) #14
akobel
On 2014/07/17 09:13:54, dak wrote: > mailto:perpeduumimmobile@gmail.com writes: > > > That leaves me with ...
9 years, 9 months ago (2014-07-17 09:19:10 UTC) #15
Mark Polesky
https://codereview.appspot.com/108700043/diff/80001/input/regression/font-expert-selection.ly File input/regression/font-expert-selection.ly (right): https://codereview.appspot.com/108700043/diff/80001/input/regression/font-expert-selection.ly#newcode33 input/regression/font-expert-selection.ly:33: ;; definition, irregardless of the name given. (Only before ...
9 years, 9 months ago (2014-07-24 20:55:54 UTC) #16
news_a-kobel.de
On 07/25/2014 05:55 AM, markpolesky@gmail.com wrote: > https://codereview.appspot.com/108700043/diff/80001/input/regression/font-expert-selection.ly Mark, thanks for the comments. James, give ...
9 years, 9 months ago (2014-07-25 11:12:29 UTC) #17
Mark Polesky
https://codereview.appspot.com/108700043/diff/80001/scm/font.scm File scm/font.scm (right): https://codereview.appspot.com/108700043/diff/80001/scm/font.scm#newcode241 scm/font.scm:241: "Construct a font tree consisting of the default Feta ...
9 years, 9 months ago (2014-07-31 07:09:43 UTC) #18
janek
https://codereview.appspot.com/108700043/diff/80001/scm/font.scm File scm/font.scm (right): https://codereview.appspot.com/108700043/diff/80001/scm/font.scm#newcode285 scm/font.scm:285: (let ((n (make-font-tree-node 'font-encoding 'fetaMusic))) On 2014/07/24 20:55:54, Mark ...
9 years, 9 months ago (2014-07-31 20:36:12 UTC) #19
janek
from description: > Furthermore, it implements per-font scaling (e.g., to match the x-heights > of ...
9 years, 9 months ago (2014-07-31 20:40:40 UTC) #20
akobel
On 2014/07/31 20:40:40, janek wrote: > from description: > > Furthermore, it implements per-font scaling ...
9 years, 9 months ago (2014-08-01 10:04:40 UTC) #21
janek
9 years, 9 months ago (2014-08-02 13:05:14 UTC) #22
2014-08-01 12:04 GMT+02:00  <perpeduumimmobile@gmail.com>:
> The user interface is simply an optional argument (default 1) in the
> font-spec-list. [...]

Ah, so it's up to the user to provide scaling factors.  I thought that
there is some code measuring height of the x letter and scaling the
font accordingly :)

Ok, now i see that you've already written that in

>> > No attempt has been made for
>> > auto-detection of the x-height of a font; I guess that would require
>> > delving into the C++-Pango parts, which is above my threshold.

(but i've misunderstood it as something else).

best,
Janek
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b