font-name. Update example.
* lily/pango-select.cc (properties_to_pango_description): don't
convert symbol font-size to number, but use to lookup.
* python/fontextract.py (write_extracted_fonts): add VMusage 0.
* python/fontextract.py (write_extracted_fonts): new file. Extract
font resources from a PS file.
* make/ly-vars.make (DVIPS_FLAGS): don't load .map file.
2005-04-13 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * input/regression/font-name.ly: show Pango fonts for
+ font-name. Update example.
+
+ * lily/pango-select.cc (properties_to_pango_description): don't
+ convert symbol font-size to number, but use to lookup.
+
+ * python/fontextract.py (write_extracted_fonts): add VMusage 0.
+
* scm/framework-ps.scm (write-preamble): use (NAME . CONTENTS) and
(NAME . FILE-NAME) tuples for font descriptions.
(write-preamble): display BeginFont DSC comments.
-\version "2.4.0"
+\version "2.5.19"
\header {
- texidoc = "Other fonts can be used by setting font-name for
-the appropriate object. This may include Postscript fonts that are
-available through (La)TeX.
-
-
-BROKEN by pango/fontconfig
-"
+ texidoc = "Other fonts can be used by setting @code{font-name} for
+the appropriate object. The string should be a Pango font description
+without size specification."
}
-%{
-
- Postscript fonts are switched off by default,
- for compatibility with TeX installations that have no
- PS fonts installed.
-%}
-
-\score {
- {
+\layout { raggedright = ##t }
- %% FIXME.
-% \override Staff.TimeSignature #'font-name = #"cmr17"
- \set Score.skipBars = ##t
- % use font-name putri8r for Utopia Italic :
-
- \override Staff.MultiMeasureRestText #'font-name = #"cmss12"
+{
+ \override Staff.TimeSignature #'font-name = #"Times"
+ \time 3/4
+ \set Score.skipBars = ##t
+ % use font-name putri8r for Utopia Italic :
+
+ \override Staff.MultiMeasureRestText #'font-name = #"LuxiMono"
+ R1*21^"Rest in LuxiMono"
- % use "ptmb8r" for Times Roman
-
- c'1_\markup { \override #'(font-name . "cmdunh10")
- { This text is Dunhill } }
-
- R1*21^"Wait for Utopia Italic"
- }
-
- \layout { raggedright = ##t }
-
+ c'1_\markup {
+ \override #'(font-name . "Utopia Bold")
+ \override #'(font-size . 4)
+ { This text is in large Utopia Bold }
+ }
}
+
SCM_BOOL_F);
}
- Real step = robust_scm2double (ly_symbol2scm ("font-size"), 0.0);
+ Real step = robust_scm2double (ly_chain_assoc_get (ly_symbol2scm ("font-size"), chain, SCM_BOOL_F),
+ 0.0);
Real size = text_size * pow (2.0, step / 6.0);
pango_font_description_set_size (description,
Font_metric *
select_pango_font (Output_def *layout, SCM chain)
{
- PangoFontDescription *pfd = properties_to_pango_description (chain,
- point_constant * layout->get_dimension (ly_symbol2scm ("text-font-size")));
+ PangoFontDescription *pfd
+ = properties_to_pango_description (chain,
+ point_constant
+ * layout->get_dimension (ly_symbol2scm ("text-font-size")));
char *str = pango_font_description_to_string (pfd);
SCM scm_str = scm_makfrom0str (str);
TODO: fold this into 1 engraver: \< and \> should also stop when
absdyn is encountered.
*/
-
struct Audio_dynamic_tuple
{
Audio_dynamic *audio_;
EXTRA_DIST_FILES +=$(TELY_FILES) $(LY_FILES) $(ITEXI_FILES) $(ITELY_FILES) $(ILY_FILES)
-DVIPS_FLAGS= -h $(notdir $(basename $<)).fonts.ps
+DVIPS_FLAGS= -h $(subst dvi,fonts.ps,$<)
% (string.join (extract_from_this, ', '), filename))
def write_extracted_fonts (output_file_name, font_dict):
+
+ if verbose:
+ sys.stderr.write( _('Writing fonts to %s') % output_file_name + '\n')
output = open (output_file_name, 'w')
output.write ('''%!PS-Adobe-3.0
+%%VMusage: 0 0
%%Creator: lilypond-extract-fonts
''')