I would like to change font attribute as the example below
Is there any way to change the font of just few words inside a label instead of using the global attribute change fontname="times bold italic" ? I need to convert to png.
You may use HTML-like labels in graphviz and define labels with partially bold text:
mynode [label=<<FONT FACE="boldfontname">bold text</FONT>>]
Or use the <B> tag:
mynode [label=< <B>bold text</B> regular text >]
If you are really desperate, you could also copy&paste bold unicode strings into your graph description, for example using the following website:
https://lingojam.com/BoldTextGenerator
Apparently, this too does not work in all setups.
Related
How can we specify style in drawtext filter. Example, draw 'Hello' in a regular font, but it should be bold, in italics and underlined. Is this possible?
Maybe this answer is late, but, from the FFMPEG documentation: http://ffmpeg.org/ffmpeg-all.html
Use fontconfig to set the font. Note that the colons need to be
escaped.
drawtext='fontfile=Linux Libertine O-40\:style=Semibold:text=FFmpeg'
You have to configure the fontconfig file of course, set up your desired fonts (be careful to have all the styles that you need) in the fonts location and then run the drawtext with the font family name followed by ':style='.
Example:
-vf "drawtext='fontfile=DejaVuSans\:style=ExtraLight:text=FFmpeg'"
This worked for me in the console and as a php shell exec command. You can use whatever font style, as long as (for the style and font family that you chose), there's a font file in the font directory that follows this rule: FontFamilyName-StyleName .
I really hope that this helps!
You can specify the target font:
drawtext= fontfile=fonts/path/Arial-Bold.ttf :text=FFmpeg
The font family should have proper file for every style you want to use.
I designed a label in a Zebra Label Designer and outputed the zpl code to a file. All my text is encoded in a ^GFA command which is not useable to me because I want to be able to replace text in the label progromatically. How do I design my labels so that the text is not encoded in the program code?
Make sure you use printer-resident fonts when you add a text field in ZebraDesigner. The printer-resident font names listed in the dropdown box of ZebraDesigner typically start with the word Zebra.
I want to extract text from pdf with bold and italics identifiction. for example bold letters need t be extracted like this.<b>TEST</b> and italics must be enclosed like <i> test </i>
Currently i am using texttopdf.exe to extract text..the accuracy was good.but not able to identify bold italics.
any one have another idea or the same pdftoexe having the feature?
Thanks in Advance
I'm trying to change the letter spacing in a NSFont (such as Gill Sans). Is this possible or will I need to load my own custom font?
Though I suppose fonts might specify some kerning hints, kerning is really an attribute of rendered text. So the answer to your question depends on how you're going to render your text to the screen.
If you're using NSAttributedString, you can look at the NSKernAttributeName attribute (see the Constants section in the documentation. If you're using CoreText and CFAttributedString, you can look at the kCTKernAttributeName attribute (see the Constants section in the documentation.
If you're using something else to render text, then the answer (if there is one; not all text rendering methods support advanced customization) will be dependent on that something else.
I wrote a simple gedit xml lang file for do highlighting source code. When i use constructions like
<style id="comment" _name="Comment" map-to="def:comment"/>
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
it always color comments blue and keywords brown. I would instead like my comments green and keywords red. How can I do that?
I also noticed some schemas under /usr/share/gtksourceview-2.0/styles:
classic.xml cobalt.xml kate.xml oblivion.xml styles.rng tango.xml
How can I use these in my lang file?
The lang files do not describe styles. The lang defines the language (this is a keyword, this is comment, etc.) and the style describes how to display those things (make comments green, make keywords blue and bold, etc.). It's up to the end user to choose the style based on there preferences.
You can select a style in the Gedit preferences dialog. As it happens, the "Kate" style does color comments green and keywords red, so you should use that one.
Take note that the paths for where you store the style and lang files is different in Gedit 2 and Gedit 3 (GTK+ 2 and GTK+ 3).