How to put a vector symbol (arrow) above text?

Post questions on how to use or achieve an effect in Inkscape.
Buy Inkscape books

How to put a vector symbol (arrow) above text?

Postby xob » Sat Aug 20, 2011 6:00 pm

Hello every one
So I have to draw vector symbols and need to put an arrow symbol above some letters. What I know is that I have to use Unicode character codes with ctrl+u. I found this vector symbol with code '20D7'. But problem is that no font other than 'Cambria Math' recognizes this character code and that too doesn't produce the desired outcome. (The arrow symbol is displayed after the letter, instead of above it!). Can anyone please tell me what is the way to do it correctly?
xob
 
Posts: 7
Joined: Thu Aug 11, 2011 1:25 am

Re: How to put a vector symbol (arrow) above text?

Postby BobSongs » Sat Aug 20, 2011 7:38 pm

Greetings.

I'm using Inkscape 0.48.1 r9760 in Ubuntu Linux.

I created some random text (I need an arrow.) and did the unicode after the final dot. I moved through several font choices and saw that the arrow remained there throughout my choices. However we're not sure what your particular "desired outcome" is. Can you give us more details?
User avatar
BobSongs
 
Posts: 313
Joined: Fri Sep 14, 2007 2:18 pm
Location: Montreal, Canada

Re: How to put a vector symbol (arrow) above text?

Postby brynn » Sun Aug 21, 2011 6:19 am

Would you be able to just draw an arrow (short straight line with arrow marker on the end) and then duplicate, and manually place above the letters? Or are there way too many letters for this to be feasible?
Basics:
> Help menu > Tutorials
> a Quick Guide to Inkscape
Manual:
> Inkscape: Guide to a Vector Drawing Program
Tutorials:
> Inkscape Community
Development news
> Google+
Gallery:
> Inkscape Community Gallery
User avatar
brynn
 
Posts: 6672
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA

Re: How to put a vector symbol (arrow) above text?

Postby xob » Sun Aug 21, 2011 6:33 am

I am using Inkscape 0.48.0 r9654 in Windows 7.
Below is how it is displayed. I want the arrow to be exactly above the letter.
Attachments
a.png
a.png (409 Bytes) Viewed 5983 times
xob
 
Posts: 7
Joined: Thu Aug 11, 2011 1:25 am

Re: How to put a vector symbol (arrow) above text?

Postby xob » Sun Aug 21, 2011 6:36 am

Actually for now i'm just using simple straight lines above letters to symbolize vectors. But it would be nice if I could use the arrow. I have to use it again and again so that's why i didn't go for the manual option.
xob
 
Posts: 7
Joined: Thu Aug 11, 2011 1:25 am

Re: How to put a vector symbol (arrow) above text?

Postby BobSongs » Mon Aug 22, 2011 1:23 am

Oh, silly me. Of course there's an easy way to move that arrow.

I'll put it in my next post.

*grins*
User avatar
BobSongs
 
Posts: 313
Joined: Fri Sep 14, 2007 2:18 pm
Location: Montreal, Canada

Re: How to put a vector symbol (arrow) above text?

Postby ~suv » Mon Aug 22, 2011 3:12 am

Did you test with Cambria itself (instead of Cambria Math) or using a different math font like XITS? Works for me (the arrows from the 'combining diacritical marks for symbols': a⃖ a⃗) in Inkscape 0.48.1 (tested on Mac OS X 10.5.8) - apparently except with Cambria Math (whether this is due to a bad font (MS) or Inkscape's fault - I do not know):
diacrits-in-math-fonts-2.png
diacrits-in-math-fonts-2.png (48.8 KiB) Viewed 5943 times


Later added: Attaching the SVG file used for the screenshot, too - on my system, the SVG file renders identically to Inkscape e.g. in Chromium, Safari, Firefox and Squiggle (Batik), only Opera doesn't seem to handle the Unicode diacritical marks as expected.

Later added II: Minor correction: the font 'Cambria' doesn't include the 'Combining Left|Right Arrow Above' characters/glyphs, apparently only 'Cambria Math' does. But unlike Inkscape's font back end on Windows, on other platforms missing glyphs are silently substituted if available in another installed font (on the screenshot (Mac OS X), the arrows for the 'Cambria' example are silently substituted with those from the 'DejaVu Sans' font): on the other hand both other tested fonts (XITS and XITS Math) do include those symbols which are properly aligned in Inkscape. You might consider switching to a different font which contains your needed glyphs (XITS, STIX, …) instead of sticking to Cambria / Cambria Math.
Attachments
diacrits-in-math-fonts-2.svg
(7.61 KiB) Downloaded 95 times
Last edited by ~suv on Mon Aug 22, 2011 5:27 pm, edited 2 times in total.
~suv
 
Posts: 1953
Joined: Sun May 10, 2009 2:07 am

Re: How to put a vector symbol (arrow) above text?

Postby BobSongs » Mon Aug 22, 2011 3:44 am

Hmm. Tried my "brilliant" solution and it failed.

I'm seeing what's happening here. The arrow over the letter is like an accent. It's as if I'm turning "e" into "é". I get where the difficulty comes in.

I was going to suggest using kerning. But the arrow and the previous letter form a single unit. So that's not possible.

Workarounds:
Turn the letter with the arrow into a path then move the arrow into the correct location.
Create a separate text block and use the Unicode by itself, creating the arrow only. Move the arrow to the desired location.

To create the arrow successfully, use the :tool_text: text tool.
Click the page.
Type a single letter and then several blank spaces using the space bar.
Ctrl+Shift+T to open the Text and Font box.
Place the cursor at the end of the row of blank spaces.
Add your unicode arrow.
Click apply then close.
Click the edited text on your desktop.
Press F8 to edit.
Delete any remaining blank spaces.
Move arrow over letter.

This works fine in the case of 1 or 2 letters that need the arrow. If this arrow must appear over every "E" in a hundred paragraphs... I'm not sure what to offer as a suggestion.
Last edited by BobSongs on Tue Aug 23, 2011 2:24 am, edited 1 time in total.
User avatar
BobSongs
 
Posts: 313
Joined: Fri Sep 14, 2007 2:18 pm
Location: Montreal, Canada

Re: How to put a vector symbol (arrow) above text?

Postby xob » Mon Aug 22, 2011 6:06 pm

Thanks everyone for help.
I'm going to switch to XITS font as suggested by ~suv, as I have to use it too many times.
Cheers!
xob
 
Posts: 7
Joined: Thu Aug 11, 2011 1:25 am

Re: How to put a vector symbol (arrow) above text?

Postby paandi » Sat Feb 15, 2014 2:26 am

hello, i am fairly new on this software, and i am wondering how do you actually put that arrow above the character. although it is not an arrow i want but a hat. I also get it on the side like the OP showed, and i have no idea how can i put it above it not on the side. Can ~suv, OP or someone explain how he achieved it please, as in what he did more explicitly. I have like 2 schemes that i have symbols which need pointy hat on them and frankly i would like to know how to do this more easily and not manually. i have installed that font and i have cambria fonts also, but i think i am missing some steps. i downloaded that .svg file and well the character is fused to the arrow hence i can't change the letter there, and obviously i don't need letter a there :D.
paandi
 
Posts: 1
Joined: Sat Feb 15, 2014 1:58 am


Return to Help with using Inkscape

Who is online

Users browsing this forum: Google Adsense [Bot], Lazur URH, Yahoo [Bot] and 12 guests