Page 1 of 1

Adding A Bitcoin Symbol

Posted: Thu Jan 11, 2018 3:52 pm
by Bhikkhu Pesala
The Bitcoin Symbol (dec 8383 hex $20BF) is new to Unicode 10.
  1. Insert the new character
  2. Add the code below to the correct position (by codepoint) after all of the other definitions for Currency Symbols in CompositeData.xml (i.e. before <!-- ΒΆΒΆ Combining Diacritical Marks for Symbols -->) or use my version of ComposteData.xml (attached)
  3. Use Complete Composites on the glyph
  4. Adjust the position of the vertical lines to suit your glyph
  5. Select all and use Get Union of Contours to combine the composite into a simple glyph
Bitcoin Symbol.png
Bitcoin Symbol.png (16.49 KiB) Viewed 10411 times
I added a definition to generate it to my copy of CompositeData.xml.

Code: Select all

<Composite><!-- Bitcoin -->
<GlyphMapping>8383</GlyphMapping>
	<Member id="1">
	<GlyphMapping>66</GlyphMapping>
		<UseMetrics>TRUE</UseMetrics>
	</Member>
	<Member id="2">
		<GlyphMapping>124</GlyphMapping>
			<XScale>0.5</XScale>
			<YScale>0.1</YScale>
	</Member>
	<Member id="3">
		<GlyphMapping>124</GlyphMapping>
			<XScale>0.5</XScale>
			<YScale>0.1</YScale>
	</Member>
	<Member id="4">
		<GlyphMapping>124</GlyphMapping>
			<XScale>0.5</XScale>
			<YScale>0.1</YScale>
	</Member>
	<Member id="5">
		<GlyphMapping>124</GlyphMapping>
			<XScale>0.5</XScale>
			<YScale>0.1</YScale>
	</Member>
	<AlignHorizontal>
		<Source>
			<Member>1</Member>
			<Position>Center</Position>
		</Source>
		<Dest>
			<Member>2</Member>
			<Position>Center</Position>
				<Offset>-100%</Offset>
		</Dest>
	</AlignHorizontal>
	<AlignHorizontal>
		<Source>
			<Member>1</Member>
			<Position>Center</Position>
		</Source>
		<Dest>
			<Member>3</Member>
			<Position>Center</Position>
				<Offset>100%</Offset>
		</Dest>
	</AlignHorizontal>
	<AlignHorizontal>
		<Source>
			<Member>1</Member>
			<Position>Center</Position>
		</Source>
		<Dest>
			<Member>4</Member>
			<Position>Center</Position>
				<Offset>-100%</Offset>
		</Dest>
	</AlignHorizontal>
	<AlignHorizontal>
		<Source>
			<Member>1</Member>
			<Position>Center</Position>
		</Source>
		<Dest>
			<Member>5</Member>
			<Position>Center</Position>
				<Offset>100%</Offset>
		</Dest>
	</AlignHorizontal>
	<AlignVertical>
		<Source>
			<Position>CapHeight</Position>
		</Source>
		<Dest>
			<Member>2</Member>
			<Position>Bottom</Position>
		</Dest>
	</AlignVertical>
	<AlignVertical>
		<Source>
			<Position>CapHeight</Position>
		</Source>
		<Dest>
			<Member>3</Member>
			<Position>Bottom</Position>
		</Dest>
	</AlignVertical>
	<AlignVertical>
		<Source>
			<Position>Baseline</Position>
		</Source>
		<Dest>
			<Member>4</Member>
			<Position>Top</Position>
		</Dest>
	</AlignVertical>
	<AlignVertical>
		<Source>
			<Position>Baseline</Position>
		</Source>
		<Dest>
			<Member>5</Member>
			<Position>Top</Position>
		</Dest>
	</AlignVertical>
	</Composite>
		<InheritRSB>TRUE</InheritRSB>
	</Member>
	<AlignHorizontal>
		<Source>
			<Member>1</Member>
			<Position>Center</Position>
		</Source>
		<Dest>
			<Member>2</Member>
			<Position>Left</Position>
		</Dest>
	</AlignHorizontal>
	</Composite>