"Flat" (b) symbol

Hints, tips and discussion about graphics and user interface elements

Moderators: electrogear, exonerate

"Flat" (b) symbol

Postby Tzarls on Wed Jan 07, 2009 2:22 am

So, my VSTi is almost done (actually it´s been "almost done" for about two months, but I always come up with new features and the thing keeps growing and growing....). Right now I´m debugging a module that tells you the name of the chord you are playing on the keyboard. Everything´s fine, except that I need the "flat" symbol - you know, as in A# (sharp) and Ab (flat) - and I don´t want to just use the "b" letter as I feel it to be...... non elegant. Does anybody know the flat symbol exists in any of the system fonts? Any ideas?
Tzarls
smanatic
 
Posts: 770
Joined: Tue Nov 11, 2008 5:43 am
Location: Peru

Re: "Flat" (b) symbol

Postby philter5 on Wed Jan 07, 2009 6:28 am

here is a font file i made with a bitmap font-editor .you only need to copy it to your
windows\fonts folder .you´ll see that there is only one symbol in the complete character set but
once you wrote it you can copy&paste it so you have not to change your font all the time .
hope this helps ;)
---Yes, a piece of software CAN be your best friend---
User avatar
philter5
smaniac
 
Posts: 1478
Joined: Thu Jan 04, 2007 7:52 pm
Location: Germany

Re: "Flat" (b) symbol

Postby Tzarls on Wed Jan 07, 2009 3:25 pm

Thanks, this is great . Now, if I want to distribute my VSTi, do I:

1. Need to install this font im every PC my VSTi is installed? (AFAIK, there´s no way to include fonts inside an OSM)

2. Need to pay you for using your font? (I could give you a copy of my VSTi, thou) :)
Tzarls
smanatic
 
Posts: 770
Joined: Tue Nov 11, 2008 5:43 am
Location: Peru

Re: "Flat" (b) symbol

Postby philter5 on Wed Jan 07, 2009 4:40 pm

to answer your first question: i didn´really thought about that issue :blush:
but you´re right, if you use the sign from a font file you will get problems because
the font has to be installed on other pcs too or you will see nothing.
perhaps just use a single small bitmap instead?
to answer your second question: nice offer, it was just a half minute work for me
but you don´t need to pay me anything. give me a credit and i´am happy :D
but i´am also really looking forward to your module,
so keep going ;)
---Yes, a piece of software CAN be your best friend---
User avatar
philter5
smaniac
 
Posts: 1478
Joined: Thu Jan 04, 2007 7:52 pm
Location: Germany

Re: "Flat" (b) symbol

Postby philter5 on Wed Jan 07, 2009 7:34 pm

here is the standard arial font that comes with windows, but with the flat sign instead of the dollar sign.
this does not solve the problem we talked about but it may help you with your work!
---Yes, a piece of software CAN be your best friend---
User avatar
philter5
smaniac
 
Posts: 1478
Joined: Thu Jan 04, 2007 7:52 pm
Location: Germany

Re: "Flat" (b) symbol

Postby Tzarls on Wed Jan 07, 2009 8:03 pm

Thanks! I was thinking into using your symbol anyway, as a bitmap - together with some green logic I could make it work. What seems strange is that I can´t use unicode symbols inside SM. For example, if you open word and use this character :"♭" (using Arial Unicode MS) and then copy and paste it into a SM label, it will show a "?" symbol. Is this a bug, normal behaviour or am I missing something?
Tzarls
smanatic
 
Posts: 770
Joined: Tue Nov 11, 2008 5:43 am
Location: Peru

Re: "Flat" (b) symbol

Postby rl on Thu Jan 08, 2009 9:49 am

I think it's a missing feature. SM's string datatype seems to not support multibyte chars. Currently the best solution would be to use bitmaps.
You might be interested in these two discussions:
viewtopic.php?p=39663&sid=f8ebb6ae67e52d543942c5e194acebb3#p39663
http://www.synthmaker.co.uk/forum/viewt ... 1139#11139
User avatar
rl
dsp wiz
 
Posts: 1494
Joined: Mon Feb 07, 2005 10:24 pm
Location: de.earth.universe.known

Re: "Flat" (b) symbol

Postby infuzion on Thu Jan 08, 2009 11:26 pm

Tzarls wrote:...if you open word and use this character :"♭" (using Arial Unicode MS) and then copy and paste it into a SM label, it will show a "?" symbol. Is this a bug, normal behaviour or am I missing something?
I posted this as a bug, over 3.5years ago:
viewtopic.php?f=2&t=801&p=6642
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver


Return to Graphics

Who is online

Users browsing this forum: No registered users and 1 guest