I have a problem with table formatting in org-mode. I use Monospace font, fixed-pitch font face, but it still skewed as shown on the screenshot below:
C-u C-x = shows:
position: 358 of 23068 (2%), column: 26
character: - (displayed as -) (codepoint 45, #o55, #x2d)
preferred charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x2D
script: latin
syntax: _ which means: symbol
category: .:Base, >:Not at bol, a:ASCII, l:Latin, r:Roman
to input: type "C-x 8 RET 2d" or "C-x 8 RET HYPHEN-MINUS"
buffer code: #x2D
file code: #x2D (encoded by coding system utf-8-unix)
display: by this font (glyph code)
xft:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-20-*-*-*-m-0-iso10646-1 (#x10)
Character code properties: customize what to show
name: HYPHEN-MINUS
general-category: Pd (Punctuation, Dash)
decomposition: (45) ('-')
There are text properties here:
face org-table
fontified t
Running describe-face for org-table face reports:
Face: org-table (sample) (customize this face)
Documentation:
Face used for tables.
Defined in ‘org-faces.el’.
Family: unspecified
Foundry: unspecified
Width: unspecified
Height: unspecified
Weight: unspecified
Slant: unspecified
Foreground: #859900
DistantForeground: unspecified
Background: unspecified
Underline: unspecified
Overline: unspecified
Strike-through: unspecified
Box: unspecified
Inverse: unspecified
Stipple: unspecified
Font: unspecified
Fontset: unspecified
Inherit: fixed-pitch
fixed-pitch face is:
Face: fixed-pitch (sample) (customize this face)
Documentation:
The basic fixed-pitch face.
Defined in ‘faces.el’.
Family: Monospace
Foundry: unspecified
Width: unspecified
Height: unspecified
Weight: unspecified
Slant: unspecified
Foreground: unspecified
DistantForeground: unspecified
Background: unspecified
Underline: unspecified
Overline: unspecified
Strike-through: unspecified
Box: unspecified
Inverse: unspecified
Stipple: unspecified
Font: unspecified
Fontset: unspecified
Inherit: unspecified
In other words, everything looks correct, but yet my table heading is askew.
Emacs 25.2.2 on Lunux. Org-mode 9.2.2.
Related
I want to use custom fontweight in my text style otherthan flutter given 100, 200 ----- 900 font weights, like Fontweight.w550 or (550 as int).
tried to achieve with this but it doesn't worked out
fontWeight: FontWeight.lerp(FontWeight.w500, FontWeight.w600, 0.5)
Your help is appreciated...
FontWeight is a const parameter which is : [w100, w200, w300, w400, w500, w600, w700, w800, w900]
FontWeight.w500 along with fontStyle:FontStyle.bold work in older version, in new version there is nothing which gives FontWeight 550.
I need to extect text from pdf with custom fonts but custom don't let to copy/paste text or search text or extract text in a clear/readble way by iText lib... the resultant text is space or non uman readable chars
The pdf format are:
Author: User Creator: Compart Docponent API Producer: Compart MFFPDF I/O Filter 2013-03-09 00:51:11 CreationDate: 04/21/16 11:26:59 ModDate: 06/09/16 10:02:16 Tagged: no Form: none Pages: 6 Encrypted: no Page size: 595.2 x 841.92 pts (A4) (rotated 0 degrees) File size: 312703 bytes Optimized: yes PDF version: 1.4
the pdf fonts info are (running pdffonts command line for each fonts): name:[none] ; type:[Type 3] ; emb: [yes]; sub: [no]; uni : [yes];
so the pdf seems to have a ToUnicode map but that is not enough..
How I can read text in a clear way?
thanks in advance
G.G.
This has been super annoying because it's the last thing that needs to be fixed before the Sublime plugin is ready.
An HSLa converter. The goal is to do this, example:
Before:
color : #000;
After (intended):
color: #000;
color : hsla(...);
But I get this:
color : hsla(...);
color: #000;
Wrong order.
The routine:
duplicate the original region.
insert the converted hsla equivalent.
But it is referencing the original region position, so the inserted HSLa always ends up first. It needs to end up second since the HEX should come first as a CSS fallback.
I need to shift the region either down before inserting. Not clear from the Sublime API how to do this. Or if you have another solution?
Tnx, help appreciated.
----------- code --------
for region in selection:
if not region.empty():
line = self.view.line(region)
line_str = '\n' + self.view.substr(line) // HEX/RGB fallback
self.view.insert(self.edit, line.end(), line_str)
word = self.view.substr(region)
css_hsl = convert_to_hsl(word,force_alpha) // HSLa equivalent
if isinstance(css_hsl, str):
self.view.replace(self.edit, region, css_hsl)
I found the t3 and d3 properties in the caption samples of jssor. how are these properties used? What are the possible values (i.e. 'B').
Are there other (undocumented) properties?
Tnks!
Attribute 't' specifies transition for 'play in', 't2' is for 'play out'
't3' is for 'play out immediately'. 't' and 't3' are in the timeline of 'play in', but 't' is 'play in' to appear, 't3' is to 'play out' to disappear.
Attribute 'd' specifies time delay to animate in the timeline. 'd' affects 't', 'd3' affacts 't3'.
d: a numeric value in milliseconds means delay of animation
du: a numeric value in milleseconds means duration of the animation
x: a numeric value in ratio means the caption will fly horizontal by distance of
parent container width
y: a numeric value in ratio means the caption will fly vertical by distance of
parent container width
z: a numeric value in ratio means the caption will zoom by
r: a numeric value means the caption will rotate by, 1 equas 360 degree.
f: a numeric value (from 0 to 1) means the caption will fade by.
b: a numeric value (in milliseconds) indicates an explicit begin time to start
animation. By default, captions play in one by one. But if a caption specified
with 'b' explicitly, it breaks the streamline.
Note: 'du', 'x', 'y', 'z', 'r' and 'f' can be percentage value, if a percentage value
is specified, the final behavior is a percent of original transition.
http://www.jssor.com/development/slider-with-caption-jquery.html
I'm using CTFontCreateCopyWithSymbolicTraits to create a CTFontRef with an italic version (kCTFontItalicTrait). Is there a way of taking the same italic font and using CTFontCreateCopyWithSymbolicTraits to set it back to the plain version again?
Thanks!
Specify the trait you want to remove in the mask, and 0 for the value, like this:
CTFontRef normalFont
= CTFontCreateCopyWithSymbolicTraits(italicFont, // italic font
0, // keep size
NULL, // keep matrix
0, // value = 0
kCTFontItalicTrait); // mask = italic