Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Blackboard bold #2

Open
adityam opened this issue Jan 30, 2010 · 6 comments
Open

Blackboard bold #2

adityam opened this issue Jan 30, 2010 · 6 comments

Comments

@adityam
Copy link

adityam commented Jan 30, 2010

Blackboard bold does not work with Context. Not sure if it is the fault of context mappings or are the glyphs missing from the font.

\starttypescript    [math]     [euler][name]
  \definefontsynonym[MathRoman][name:Neo Euler] [features=math]
\stoptypescript

\definetypeface [mainface] [rm] [serif] [palatino] [default] 
\definetypeface [mainface] [mm] [math]  [euler] [default]  

\setupbodyfont[mainface,12pt]
\starttext
$\Bbb ABCDEFGHIJKLMNOPQRSTUVWXYZ$
\stoptext
@khaledhosny
Copy link
Member

The font has no blackboard glyphs, I've some experimental glyphs in the mathbb branch if you want to try it, but I don't dare merging it to the main font :).

@adityam
Copy link
Author

adityam commented Jan 31, 2010

Thanks. For the record, I need to call the fonts explicitly by filename: file:eulerbb

@khaledhosny
Copy link
Member

BTW, $\Bbb \pi \gamma \Gamma \Pi \sum$ doesn't give the BB alternatives of those glyphs.

@adityam
Copy link
Author

adityam commented Jan 31, 2010

Here is a patch for math-map.lua to get this to work. I will ask Hans to merge this with the beta.

diff --git a/math-map.lua b/math-map.lua
index b3c5c29..e87f145 100644
--- a/math-map.lua
+++ b/math-map.lua
@@ -213,6 +213,15 @@ mathematics.alphabets = {
                 [0x0005A]=0x02124,
             },
             lcletters = 0x1D552,
+            lcgreek = { -- gamma pi
+                [0x03B3]=0x0213C, [0x03C0]=0x0213D,
+            },
+            ucgreek = { -- Gamma pi
+                [0x0393]=0x0213E, [0x03A0]=0x0213F, 
+            },
+            symbols = { -- sum
+              [0x2211]=0x02140,
+            },
         },
     },
     fraktur = { -- ok
@@ -294,9 +303,15 @@ alphabets.monospaced.it         = alphabets.sansserif.tf
 alphabets.monospaced.bf         = alphabets.sansserif.tf
 alphabets.monospaced.bi         = alphabets.sansserif.bf

-alphabets.blackboard.tf.symbols = alphabets.regular.tf.symbols
-alphabets.blackboard.tf.lcgreek = alphabets.regular.tf.lcgreek
-alphabets.blackboard.tf.ucgreek = alphabets.regular.tf.ucgreek
+
+-- alphabets.blackboard.tf.symbols = alphabets.regular.tf.symbols
+-- alphabets.blackboard.tf.lcgreek = alphabets.regular.tf.lcgreek
+-- alphabets.blackboard.tf.ucgreek = alphabets.regular.tf.ucgreek
+
+alphabets.blackboard.tf.symbols = table.merge(alphabets.regular.tf.symbols, alphabets.blackboard.tf.symbols)
+alphabets.blackboard.tf.lcgreek = table.merge(alphabets.regular.tf.lcgreek, alphabets.blackboard.tf.lcgreek)
+alphabets.blackboard.tf.ucgreek = table.merge(alphabets.regular.tf.ucgreek, alphabets.blackboard.tf.ucgreek)
+
 alphabets.blackboard.it         = alphabets.blackboard.tf
 alphabets.blackboard.bf         = alphabets.blackboard.tf
 alphabets.blackboard.bi         = alphabets.blackboard.bf

@adityam
Copy link
Author

adityam commented Jan 17, 2012

Are there any plans to merge the blackboard glyphs to the main font?

@khaledhosny
Copy link
Member

Not currently, since I've no time for working on this font right now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants