Questions tagged [fixed-width]

Fixed layouts are layouts that start with a specific size, determined by the Web designer. They remain that width, regardless of the size of the browser window viewing the page. Fixed width layouts allow a designer more direct control over how the page will look in most situations. They are often preferred by designers with a print background, as they allow the designer to make minute adjustments to the layout and have them remain consistent across browsers and computers.

source: http://webdesign.about.com/od/layout/g/bldeffixedlyot.htm

Fixed Width Text File Definition: Above all, a fixed width text file is a file that has a specific format which allows for the saving of textual information/data in an organized fashion. Fixed width text files are special cases of text files where the format is specified by column widths, pad character and left/right alignment. Column widths are in units of characters. So if you have data in a text file where the first column always has exactly 10 characters, and the second column has exactly 5, the third has exactly 12 (and so on), then you have a fixed width text file.

Each row (paragraph) contains one record of information; each record can contain multiple pieces of data (fields), each data field (column) has a precise number of characters. The data is padded with spaces (or any character you specify) if it does not completely use all the characters allotted to it. Further, each piece of data can be left or right justified, meaning the padding of characters can occur on either side.

source: http://www.softinterface.com/Convert-XLS%5CFeatures%5CFixed-Width-Text-File-Definition.htm

462 questions
7
votes
1 answer

Ensuring fixed-width of unicode number forms, subscripts, box drawing, and geometric shape characters

I've been toying around with using unicode to draw quantum circuits, like this: ──H─────●────────────●─ │ │ ──H─●────────────X⅛───────────┼─●─ │ │ │ │ …
Craig Gidney
  • 17,763
  • 5
  • 68
  • 136
7
votes
1 answer

Does iOS dev has build-in fixed width font?

The font called from [UIFont boldSystemFontWithSize xx] is not fixed-width, I don't know the exact name of this system font (iOS 6). I'm wondering if there is a built-in fixed-width font? Otherwise I have to embed a new font to my app. PS: maybe iOS…
JimZ
  • 1,182
  • 1
  • 13
  • 30
7
votes
2 answers

HTML CSS formatting: table row inherit content height

How can I format a table row to inherit the height of the content? I wish to have something like I have tried table{ table-layout:fixed; width:700px; } but that does not work
jpo
  • 3,959
  • 20
  • 59
  • 102
7
votes
1 answer

Select Query for the fixed length

I have an table called customer where i am selecting few columns and making its fixed length,where i need to send the values to SSIS packages for an fixed length output and is written in a text…
happysmile
  • 7,537
  • 36
  • 105
  • 181
6
votes
2 answers

Centering Pascal's Triangle Output in C++

I have successfully written a code to output Pascal's Triangle in a somewhat triangular shape using cout.width(total_rows - current_row), but it looks like this: 1 1 1 1 2 1 1 3 3 1 …
aedunn
  • 121
  • 1
  • 3
  • 8
6
votes
1 answer

Excel-like text import in Python: automatically parsing fixed width columns

In Excel, if you import whitespace delineated text in which the columns do not line up perfectly and data may be missing, like pH pKa/Em n(slope) 1000*chi2 vdw0 CYS-I0014_ >14.0 0.00 LYS+I0013_…
tel
  • 13,005
  • 2
  • 44
  • 62
6
votes
1 answer

How do I read fixed-width records in Perl using the -0 option?

So I know you can write Perl one-liners which read records with the non-default record separator with options like perl -064 -ne '#... delimited by @' Or the entire file in one line: perl -0777 -ne '#... file at once' I also know if you…
wu-lee
  • 749
  • 4
  • 17
6
votes
1 answer

Is it possible to fix axis margin with ggplot2?

I have an interactive display consisting of a bar chart that shows a selected statistic for different categories. However, ggplot2 readjusts the y-axis width depending on the labels, and hence makes the bars annoyingly move on the x-direction. See…
Arthur
  • 1,208
  • 13
  • 25
6
votes
1 answer

Is there a fixed-width bool type in standard C++?

As far as I could find, the width of the bool type is implementation-defined. But are there any fixed-width boolean types, or should I stick to, for e.g., a uint8_t to represent a fixed-width bool? [EDIT] I made this python script that…
Aaron de Windt
  • 16,794
  • 13
  • 47
  • 62
6
votes
3 answers

F# Read Fixed Width Text File

Hi I'm looking to find the best way to read in a fixed width text file using F#. The file will be plain text, from one to a couple of thousand lines long and around 1000 characters wide. Each line contains around 50 fields, each with varying…
Chico
  • 309
  • 3
  • 10
6
votes
6 answers

How to keep
  • elements on single line in fixed width
  • I've a header div and a menu ul below it. I'd like to accomplish 2 things: 1) the ul should have the same width as the div (outer vertical borders exactly same x position 2) I'd like to keep the spacing between li elements roughly equal With some…
    RubenGeert
    • 2,902
    • 6
    • 32
    • 50
    6
    votes
    3 answers

    XML to Fixed width text file with xsl style sheet

    I need help formatting this xml to a fixed width text file using a xsl style sheet. I know very little about xsl and have found very little information online on how this can be done. Basically I need this xml
    user973671
    • 1,620
    • 6
    • 27
    • 39
    5
    votes
    3 answers

    Is it required that either all or none of the C fixed-width integer types to be defined?

    The specification specifies the types int8_t int16_t int32_t and int64_t (and their unsigned variants) and follows them with: These types are optional. In C the type char is at least 8 bits and short and int are at least 16 bits and long is at…
    user16217248
    • 3,119
    • 19
    • 19
    • 37
    5
    votes
    3 answers

    Split differents fixed width strings formats

    Newbie question! I have a column with strings of two differents fixed widths formats. We can recognize the type of format by its name and split the string according to the format. df <- data.frame( var1 = …
    Benoit bbn
    • 73
    • 3
    5
    votes
    2 answers

    How to reliably determine the width of a character in C#?

    I'm writing a C# program and I'm using a fixed-width font to display everything. Under this font, every Unicode character either occupies 1 character width or 2 character width. In the program, there is a feature that needs to determine a particular…
    Just a learner
    • 26,690
    • 50
    • 155
    • 234
    1 2
    3
    30 31