bugGNU TeXmacs - Bugs: bug #36534, TeXmacs should look in $HOME/.fonts

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #36534: TeXmacs should look in $HOME/.fonts

Submitted by:  Sam Liddicott <samjam>
Submitted on:  Thu 24 May 2012 09:52:10 AM UTC  
 
Category: NonePriority: 5 - Normal
Item Group: WishlistStatus: Fixed
Privacy: PublicAssigned to: Sam Liddicott <samjam>
Originator Name: Open/Closed: Closed
Release: Release: None
Fixed Release: NoneFixed Release: 
Keywords: ttf fonts

Thu 24 May 2012 09:52:10 AM UTC, original submission:

TeXmacs looks for truetype fonts in $HOME/.TeXmacs/fonts/truetype/

It should also look in $HOME/.fonts

Otherwise I was able to add new TTF font as easy as this:

--- a/TeXmacs/progs/fonts/fonts-truetype.scm
+++ b/TeXmacs/progs/fonts/fonts-truetype.scm
@@ -27,6 +27,11 @@
((luxi $a $b slanted $s $d) (truetype luxirri $s $d))
((luxi $a $b $c $s $d) (truetype luxirr $s $d))

+ ((myfont rm $b $c $s $d) (truetype MyFont-Regular $s $d))
+ ((myfont rm bold $c $s $d) (truetype MyFont-Bold $s $d))
+ ((myfont ss $b $c $s $d) (truetype MyFontSans-Regular $s $d))
+ ((myfont ss bold $c $s $d) (truetype MyFontSans-Bold $s $d))
+
((ms-andalemo rm $b $c $s $d) (truetype andalemo $s $d))
((ms-arial rm xbold $a $s $d) (truetype ariblk $s $d))
((ms-arial rm bold italic $s $d) (truetype arialbi $s $d))
diff --git a/TeXmacs/progs/text/format-text-menu.scm b/TeXmacs/progs/text/format-text-menu.scm
index 5876c3d..1a6e98a 100644
--- a/TeXmacs/progs/text/format-text-menu.scm
+++ b/TeXmacs/progs/text/format-text-menu.scm
@@ -63,6 +63,8 @@
("Symbols" (make-with "font" "apple-symbols")))))
(if (font-exists-in-tt? "times")
(-> "Microsoft"
+ (if (font-exists-in-tt? "MyFont-Regular")
+ ("MyFont" (make-with "font" "myfont")))
(if (font-exists-in-tt? "andalemo")
("Andalemo" (make-with "font" "ms-andalemo")))
(if (font-exists-in-tt? "arial")

(still too hard and not quite right of course but eminently possible now)

Sam Liddicott <samjam>
Project MemberIn charge of this item.

 

Attached Files
file #25913:  search-dot-fonts.diff added by samjam (489B - text/x-patch - Diff to search $HOME/.fonts)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by samjam (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 May 2012 12:08:42 PM UTCsamjamStatusNone=>Fixed
      Assigned toNone=>samjam
      Open/ClosedOpen=>Closed
    Thu 24 May 2012 10:18:27 AM UTCsamjamAttached File-=>Added search-dot-fonts.diff, #25913

    Back to the top


    Powered by Savane 3.1-cleanup1