TODO features:
Application: - Special cursor to indicate baseline set - Special cursor when dragging canvas with middle mouse button Functionality: - Beside Baseline, also make top and mid lines Bugs: - Middle mouse button tries to change selection while dragging canvas with rectSelection tool active
This commit is contained in:
58
McBitFont/Form1.Designer.cs
generated
58
McBitFont/Form1.Designer.cs
generated
@@ -124,6 +124,10 @@
|
|||||||
pnlRightButtons = new System.Windows.Forms.Panel();
|
pnlRightButtons = new System.Windows.Forms.Panel();
|
||||||
lblBrush = new System.Windows.Forms.Label();
|
lblBrush = new System.Windows.Forms.Label();
|
||||||
pnlInfo = new System.Windows.Forms.Panel();
|
pnlInfo = new System.Windows.Forms.Panel();
|
||||||
|
cmBaseline = new System.Windows.Forms.ContextMenuStrip(components);
|
||||||
|
tsmiBaseline = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
tsmiMidline = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
tsmiTopline = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
((System.ComponentModel.ISupportInitialize)nudX).BeginInit();
|
((System.ComponentModel.ISupportInitialize)nudX).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)nudY).BeginInit();
|
((System.ComponentModel.ISupportInitialize)nudY).BeginInit();
|
||||||
panel1.SuspendLayout();
|
panel1.SuspendLayout();
|
||||||
@@ -132,6 +136,7 @@
|
|||||||
((System.ComponentModel.ISupportInitialize)nudBrush).BeginInit();
|
((System.ComponentModel.ISupportInitialize)nudBrush).BeginInit();
|
||||||
pnlRightButtons.SuspendLayout();
|
pnlRightButtons.SuspendLayout();
|
||||||
pnlInfo.SuspendLayout();
|
pnlInfo.SuspendLayout();
|
||||||
|
cmBaseline.SuspendLayout();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// dotPanel
|
// dotPanel
|
||||||
@@ -688,7 +693,7 @@
|
|||||||
undoToolStripMenuItem.Image = Properties.Resources.arrow_undo;
|
undoToolStripMenuItem.Image = Properties.Resources.arrow_undo;
|
||||||
undoToolStripMenuItem.Name = "undoToolStripMenuItem";
|
undoToolStripMenuItem.Name = "undoToolStripMenuItem";
|
||||||
undoToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z;
|
undoToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z;
|
||||||
undoToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
undoToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
|
||||||
undoToolStripMenuItem.Text = "Undo";
|
undoToolStripMenuItem.Text = "Undo";
|
||||||
undoToolStripMenuItem.ToolTipText = "Undo last canvas change";
|
undoToolStripMenuItem.ToolTipText = "Undo last canvas change";
|
||||||
undoToolStripMenuItem.Click += undoToolStripMenuItem_Click;
|
undoToolStripMenuItem.Click += undoToolStripMenuItem_Click;
|
||||||
@@ -698,7 +703,7 @@
|
|||||||
redoToolStripMenuItem.Image = Properties.Resources.arrow_redo;
|
redoToolStripMenuItem.Image = Properties.Resources.arrow_redo;
|
||||||
redoToolStripMenuItem.Name = "redoToolStripMenuItem";
|
redoToolStripMenuItem.Name = "redoToolStripMenuItem";
|
||||||
redoToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y;
|
redoToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y;
|
||||||
redoToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
redoToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
|
||||||
redoToolStripMenuItem.Text = "Redo";
|
redoToolStripMenuItem.Text = "Redo";
|
||||||
redoToolStripMenuItem.ToolTipText = "Redo canvas change";
|
redoToolStripMenuItem.ToolTipText = "Redo canvas change";
|
||||||
redoToolStripMenuItem.Click += redoToolStripMenuItem_Click;
|
redoToolStripMenuItem.Click += redoToolStripMenuItem_Click;
|
||||||
@@ -709,7 +714,7 @@
|
|||||||
copyToolStripMenuItem.Name = "copyToolStripMenuItem";
|
copyToolStripMenuItem.Name = "copyToolStripMenuItem";
|
||||||
copyToolStripMenuItem.ShortcutKeyDisplayString = "";
|
copyToolStripMenuItem.ShortcutKeyDisplayString = "";
|
||||||
copyToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C;
|
copyToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C;
|
||||||
copyToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
copyToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
|
||||||
copyToolStripMenuItem.Text = "Copy";
|
copyToolStripMenuItem.Text = "Copy";
|
||||||
copyToolStripMenuItem.ToolTipText = "Copy current symbol to clipboard";
|
copyToolStripMenuItem.ToolTipText = "Copy current symbol to clipboard";
|
||||||
copyToolStripMenuItem.Click += copyToolStripMenuItem_Click;
|
copyToolStripMenuItem.Click += copyToolStripMenuItem_Click;
|
||||||
@@ -720,7 +725,7 @@
|
|||||||
pasteToolStripMenuItem.Name = "pasteToolStripMenuItem";
|
pasteToolStripMenuItem.Name = "pasteToolStripMenuItem";
|
||||||
pasteToolStripMenuItem.ShortcutKeyDisplayString = "";
|
pasteToolStripMenuItem.ShortcutKeyDisplayString = "";
|
||||||
pasteToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V;
|
pasteToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V;
|
||||||
pasteToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
pasteToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
|
||||||
pasteToolStripMenuItem.Text = "Paste";
|
pasteToolStripMenuItem.Text = "Paste";
|
||||||
pasteToolStripMenuItem.ToolTipText = "Paste from clipboard to current symbol";
|
pasteToolStripMenuItem.ToolTipText = "Paste from clipboard to current symbol";
|
||||||
pasteToolStripMenuItem.Click += pasteToolStripMenuItem_Click;
|
pasteToolStripMenuItem.Click += pasteToolStripMenuItem_Click;
|
||||||
@@ -730,7 +735,7 @@
|
|||||||
selectToolStripMenuItem.Image = Properties.Resources.fam_rectt;
|
selectToolStripMenuItem.Image = Properties.Resources.fam_rectt;
|
||||||
selectToolStripMenuItem.Name = "selectToolStripMenuItem";
|
selectToolStripMenuItem.Name = "selectToolStripMenuItem";
|
||||||
selectToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R;
|
selectToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R;
|
||||||
selectToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
selectToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
|
||||||
selectToolStripMenuItem.Text = "Select";
|
selectToolStripMenuItem.Text = "Select";
|
||||||
selectToolStripMenuItem.ToolTipText = "Toggle Rectangle selection tool";
|
selectToolStripMenuItem.ToolTipText = "Toggle Rectangle selection tool";
|
||||||
selectToolStripMenuItem.Click += selectToolStripMenuItem_Click;
|
selectToolStripMenuItem.Click += selectToolStripMenuItem_Click;
|
||||||
@@ -741,7 +746,7 @@
|
|||||||
selectAllToolStripMenuItem.Image = Properties.Resources.arrow_out;
|
selectAllToolStripMenuItem.Image = Properties.Resources.arrow_out;
|
||||||
selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem";
|
selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem";
|
||||||
selectAllToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A;
|
selectAllToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A;
|
||||||
selectAllToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
selectAllToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
|
||||||
selectAllToolStripMenuItem.Text = "Select All";
|
selectAllToolStripMenuItem.Text = "Select All";
|
||||||
selectAllToolStripMenuItem.ToolTipText = "Select entire canvas";
|
selectAllToolStripMenuItem.ToolTipText = "Select entire canvas";
|
||||||
selectAllToolStripMenuItem.Click += selectAllToolStripMenuItem_Click;
|
selectAllToolStripMenuItem.Click += selectAllToolStripMenuItem_Click;
|
||||||
@@ -1021,18 +1026,18 @@
|
|||||||
//
|
//
|
||||||
// btnBaseline
|
// btnBaseline
|
||||||
//
|
//
|
||||||
btnBaseline.Image = Properties.Resources.fam_base;
|
btnBaseline.Image = Properties.Resources.fam_lines;
|
||||||
btnBaseline.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
||||||
btnBaseline.Location = new System.Drawing.Point(94, 81);
|
btnBaseline.Location = new System.Drawing.Point(94, 81);
|
||||||
btnBaseline.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
btnBaseline.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
||||||
btnBaseline.Name = "btnBaseline";
|
btnBaseline.Name = "btnBaseline";
|
||||||
btnBaseline.Size = new System.Drawing.Size(88, 27);
|
btnBaseline.Size = new System.Drawing.Size(88, 27);
|
||||||
btnBaseline.TabIndex = 18;
|
btnBaseline.TabIndex = 18;
|
||||||
btnBaseline.Text = " Baseline";
|
btnBaseline.Text = " Lines";
|
||||||
btnBaseline.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
btnBaseline.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||||
toolTip1.SetToolTip(btnBaseline, "Set irtual base line for the font");
|
toolTip1.SetToolTip(btnBaseline, "Set irtual base line for the font");
|
||||||
btnBaseline.UseVisualStyleBackColor = true;
|
btnBaseline.UseVisualStyleBackColor = true;
|
||||||
btnBaseline.Click += btnBaseline_Click;
|
btnBaseline.Click += btnBaseline_Click;
|
||||||
|
btnBaseline.Paint += btnBaseline_Paint;
|
||||||
//
|
//
|
||||||
// toolTip1
|
// toolTip1
|
||||||
//
|
//
|
||||||
@@ -1207,6 +1212,36 @@
|
|||||||
pnlInfo.Size = new System.Drawing.Size(103, 154);
|
pnlInfo.Size = new System.Drawing.Size(103, 154);
|
||||||
pnlInfo.TabIndex = 28;
|
pnlInfo.TabIndex = 28;
|
||||||
//
|
//
|
||||||
|
// cmBaseline
|
||||||
|
//
|
||||||
|
cmBaseline.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { tsmiTopline, tsmiMidline, tsmiBaseline });
|
||||||
|
cmBaseline.Name = "cmBaseline";
|
||||||
|
cmBaseline.Size = new System.Drawing.Size(181, 92);
|
||||||
|
//
|
||||||
|
// tsmiBaseline
|
||||||
|
//
|
||||||
|
tsmiBaseline.Image = Properties.Resources.fam_base;
|
||||||
|
tsmiBaseline.Name = "tsmiBaseline";
|
||||||
|
tsmiBaseline.Size = new System.Drawing.Size(180, 22);
|
||||||
|
tsmiBaseline.Text = "Base line";
|
||||||
|
tsmiBaseline.Click += tsmiBaseline_Click;
|
||||||
|
//
|
||||||
|
// tsmiMidline
|
||||||
|
//
|
||||||
|
tsmiMidline.Image = Properties.Resources.fam_mid;
|
||||||
|
tsmiMidline.Name = "tsmiMidline";
|
||||||
|
tsmiMidline.Size = new System.Drawing.Size(180, 22);
|
||||||
|
tsmiMidline.Text = "Mid line";
|
||||||
|
tsmiMidline.Click += tsmiMidline_Click;
|
||||||
|
//
|
||||||
|
// tsmiTopline
|
||||||
|
//
|
||||||
|
tsmiTopline.Image = Properties.Resources.fam_top;
|
||||||
|
tsmiTopline.Name = "tsmiTopline";
|
||||||
|
tsmiTopline.Size = new System.Drawing.Size(180, 22);
|
||||||
|
tsmiTopline.Text = "Top line";
|
||||||
|
tsmiTopline.Click += tsmiTopline_Click;
|
||||||
|
//
|
||||||
// MainForm
|
// MainForm
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||||
@@ -1244,6 +1279,7 @@
|
|||||||
pnlRightButtons.PerformLayout();
|
pnlRightButtons.PerformLayout();
|
||||||
pnlInfo.ResumeLayout(false);
|
pnlInfo.ResumeLayout(false);
|
||||||
pnlInfo.PerformLayout();
|
pnlInfo.PerformLayout();
|
||||||
|
cmBaseline.ResumeLayout(false);
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
|
|
||||||
@@ -1350,6 +1386,10 @@
|
|||||||
private System.Windows.Forms.Label lblBrush;
|
private System.Windows.Forms.Label lblBrush;
|
||||||
private System.Windows.Forms.ToolStripMenuItem frameScreenshotToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem frameScreenshotToolStripMenuItem;
|
||||||
private System.Windows.Forms.TextBox tbFrameNote;
|
private System.Windows.Forms.TextBox tbFrameNote;
|
||||||
|
private System.Windows.Forms.ContextMenuStrip cmBaseline;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiBaseline;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiMidline;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem tsmiTopline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -45,11 +45,22 @@ namespace McBitFont {
|
|||||||
[Key(5)]
|
[Key(5)]
|
||||||
public int codepage;
|
public int codepage;
|
||||||
[Key(6)]
|
[Key(6)]
|
||||||
public int baseline;
|
public int baseline1;
|
||||||
|
[Key(9)]
|
||||||
|
public int baseline2;
|
||||||
|
[Key(10)]
|
||||||
|
public int baseline3;
|
||||||
[Key(7)]
|
[Key(7)]
|
||||||
public List<FrameMiniature> frames;
|
public List<FrameMiniature> frames;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum SetLines {
|
||||||
|
SL_None = 0,
|
||||||
|
SL_Base,
|
||||||
|
SL_Mid,
|
||||||
|
SL_Top
|
||||||
|
}
|
||||||
|
|
||||||
public FrameMiniature f;
|
public FrameMiniature f;
|
||||||
public List<FrameMiniature> frames = new List<FrameMiniature>();
|
public List<FrameMiniature> frames = new List<FrameMiniature>();
|
||||||
//private CanvasHistory history = new();
|
//private CanvasHistory history = new();
|
||||||
@@ -62,14 +73,14 @@ namespace McBitFont {
|
|||||||
public bool monospaced = false;
|
public bool monospaced = false;
|
||||||
private bool modified = false;
|
private bool modified = false;
|
||||||
private bool prjModified = false;
|
private bool prjModified = false;
|
||||||
public const string version = "2.8";
|
public const string version = "2.9";
|
||||||
public string prjName = "Untitled";
|
public string prjName = "Untitled";
|
||||||
public string prjFileName = "";
|
public string prjFileName = "";
|
||||||
public int codepage = 1251;
|
public int codepage = 1251;
|
||||||
private FrameMiniature fbuf;
|
private FrameMiniature fbuf;
|
||||||
private readonly DataFormats.Format clpbFormat = DataFormats.GetFormat("McBitFontFrame");
|
private readonly DataFormats.Format clpbFormat = DataFormats.GetFormat("McBitFontFrame");
|
||||||
private int baseline = 0;
|
private int baseline1 = 0, baseline2 = 0, baseline3 = 0;
|
||||||
private bool set_base = false;
|
private SetLines set_lines = SetLines.SL_None;
|
||||||
private Point selection1, selection2;
|
private Point selection1, selection2;
|
||||||
private Point[,] sidebarLocs = new Point[2, 3];
|
private Point[,] sidebarLocs = new Point[2, 3];
|
||||||
|
|
||||||
@@ -173,7 +184,7 @@ namespace McBitFont {
|
|||||||
SideBarRecalc();
|
SideBarRecalc();
|
||||||
|
|
||||||
// Create default cursor
|
// Create default cursor
|
||||||
dotPanel.Cursor = McCursor.GetCursor((int)nudBrush.Value, cellSize, gap);
|
SetPanelCursor();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -351,7 +362,7 @@ namespace McBitFont {
|
|||||||
vScroll.Enabled = true;
|
vScroll.Enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!chkRectSelect.Checked) dotPanel.Cursor = McCursor.GetCursor((int)nudBrush.Value, cellSize, gap);
|
SetPanelCursor();
|
||||||
dotPanel.Refresh();
|
dotPanel.Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -490,16 +501,22 @@ namespace McBitFont {
|
|||||||
mouseDownMiddle = true;
|
mouseDownMiddle = true;
|
||||||
mouseX = e.X;
|
mouseX = e.X;
|
||||||
mouseY = e.Y;
|
mouseY = e.Y;
|
||||||
|
SetPanelCursor();
|
||||||
}
|
}
|
||||||
if (mouseDownMiddle && e.Button == MouseButtons.None) {
|
if (mouseDownMiddle && e.Button == MouseButtons.None) {
|
||||||
mouseDownMiddle = false;
|
mouseDownMiddle = false;
|
||||||
|
SetPanelCursor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Moving baseline
|
// Moving baseline
|
||||||
Rectangle rect1, rect2;
|
Rectangle rect1, rect2;
|
||||||
if (set_base) {
|
if (set_lines > SetLines.SL_None) {
|
||||||
|
int baseline = 0;
|
||||||
|
if (set_lines == SetLines.SL_Base) baseline = baseline1;
|
||||||
|
if (set_lines == SetLines.SL_Mid) baseline = baseline2;
|
||||||
|
if (set_lines == SetLines.SL_Top) baseline = baseline3;
|
||||||
|
|
||||||
int yy = pixelOffset + baseline * (cellSize + gap) - vScroll.Value - 1;
|
int yy = pixelOffset + baseline * (cellSize + gap) - vScroll.Value - 1;
|
||||||
rect1 = new Rectangle(pixelOffset, yy, w, 2);
|
rect1 = new Rectangle(pixelOffset, yy, w, 2);
|
||||||
@@ -511,11 +528,17 @@ namespace McBitFont {
|
|||||||
yy = pixelOffset + baseline * (cellSize + gap) - vScroll.Value - 1;
|
yy = pixelOffset + baseline * (cellSize + gap) - vScroll.Value - 1;
|
||||||
rect2 = new Rectangle(pixelOffset, yy, w, 2);
|
rect2 = new Rectangle(pixelOffset, yy, w, 2);
|
||||||
|
|
||||||
|
if (set_lines == SetLines.SL_Base) baseline1 = baseline;
|
||||||
|
if (set_lines == SetLines.SL_Mid) baseline2 = baseline;
|
||||||
|
if (set_lines == SetLines.SL_Top) baseline3 = baseline;
|
||||||
|
|
||||||
dotPanel.Invalidate(rect1);
|
dotPanel.Invalidate(rect1);
|
||||||
dotPanel.Invalidate(rect2);
|
dotPanel.Invalidate(rect2);
|
||||||
|
|
||||||
if (e.Button == MouseButtons.Left) {
|
if (e.Button == MouseButtons.Left) {
|
||||||
set_base = false;
|
set_lines = SetLines.SL_None;
|
||||||
|
SetPanelCursor();
|
||||||
|
SetModified(true, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -534,7 +557,7 @@ namespace McBitFont {
|
|||||||
selection2.Y = j;
|
selection2.Y = j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (e.Button != MouseButtons.None && !mouseDown) {
|
if ((e.Button == MouseButtons.Left || e.Button == MouseButtons.Right) && !mouseDown) {
|
||||||
// Started to move a mouse with button held
|
// Started to move a mouse with button held
|
||||||
mouseDown = true;
|
mouseDown = true;
|
||||||
if (rectSel) {
|
if (rectSel) {
|
||||||
@@ -774,21 +797,36 @@ namespace McBitFont {
|
|||||||
// Fill the cell with color
|
// Fill the cell with color
|
||||||
if (f.data[i, j]) sb = sbb;
|
if (f.data[i, j]) sb = sbb;
|
||||||
else sb = sbw;
|
else sb = sbw;
|
||||||
g.FillRectangle(sb, x, (baseline == j ? y + 1 : y), cellSize, (baseline == j ? cellSize - 1 : cellSize));
|
g.FillRectangle(sb, x, ((baseline1 == j || baseline2 == j || baseline3 == j) ? y + 1 : y), cellSize, ((baseline1 == j || baseline2 == j || baseline3 == j) ? cellSize - 1 : cellSize));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw the baseline
|
// Draw the base lines
|
||||||
if (baseline > 0 && gap > 0) {
|
if (baseline1 > 0 || baseline2 > 0 || baseline3 > 0) {
|
||||||
x = pixelOffset - hScroll.Value;
|
x = pixelOffset - hScroll.Value;
|
||||||
y = pixelOffset + baseline * (cellSize + gap) - vScroll.Value;
|
// Base line
|
||||||
|
if (baseline1 > 0) {
|
||||||
Pen sbBase = new(Color.Blue, 2);
|
Pen sbBase = new(Color.Blue, gap > 0 ? 2 : 1);
|
||||||
g.DrawLine(sbBase, x, y, w, y);
|
y = pixelOffset + baseline1 * (cellSize + gap) - vScroll.Value;
|
||||||
|
g.DrawLine(sbBase, x, y, w, y);
|
||||||
|
}
|
||||||
|
// Mid line
|
||||||
|
if (baseline2 > 0) {
|
||||||
|
Pen sbBase = new(Color.MediumPurple, gap > 0 ? 2 : 1);
|
||||||
|
y = pixelOffset + baseline2 * (cellSize + gap) - vScroll.Value;
|
||||||
|
g.DrawLine(sbBase, x, y, w, y);
|
||||||
|
}
|
||||||
|
// Top line
|
||||||
|
if (baseline3 > 0) {
|
||||||
|
Pen sbBase = new(Color.FromArgb(0x16, 0x8b, 0x76), gap > 0 ? 2 : 1);
|
||||||
|
y = pixelOffset + baseline3 * (cellSize + gap) - vScroll.Value;
|
||||||
|
g.DrawLine(sbBase, x, y, w, y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Draw the Rect selection
|
// Draw the Rect selection
|
||||||
if (chkRectSelect.Checked) {
|
if (chkRectSelect.Checked || CAKeyDown) {
|
||||||
Point p1 = new(selection1.X, selection1.Y);
|
Point p1 = new(selection1.X, selection1.Y);
|
||||||
Point p2 = new(selection2.X, selection2.Y);
|
Point p2 = new(selection2.X, selection2.Y);
|
||||||
NormPoints(ref p1, ref p2);
|
NormPoints(ref p1, ref p2);
|
||||||
@@ -903,7 +941,9 @@ namespace McBitFont {
|
|||||||
f = CopyFrame(frames.First());
|
f = CopyFrame(frames.First());
|
||||||
form.Dispose();
|
form.Dispose();
|
||||||
|
|
||||||
baseline = 0;
|
baseline1 = 0;
|
||||||
|
baseline2 = 0;
|
||||||
|
baseline3 = 0;
|
||||||
|
|
||||||
prjName = "Untitled";
|
prjName = "Untitled";
|
||||||
prjFileName = "";
|
prjFileName = "";
|
||||||
@@ -1004,7 +1044,9 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
monospaced = sav.monospaced;
|
monospaced = sav.monospaced;
|
||||||
codepage = sav.codepage;
|
codepage = sav.codepage;
|
||||||
baseline = sav.baseline;
|
baseline1 = sav.baseline1;
|
||||||
|
baseline2 = sav.baseline2;
|
||||||
|
baseline3 = sav.baseline3;
|
||||||
lblType.Text = monospaced ? "Monospaced" : "Variable width / Single";
|
lblType.Text = monospaced ? "Monospaced" : "Variable width / Single";
|
||||||
frames = sav.frames;
|
frames = sav.frames;
|
||||||
makeVarWidthToolStripMenuItem.Visible = monospaced;
|
makeVarWidthToolStripMenuItem.Visible = monospaced;
|
||||||
@@ -1053,7 +1095,9 @@ namespace McBitFont {
|
|||||||
sav.monospaced = monospaced;
|
sav.monospaced = monospaced;
|
||||||
sav.frames = frames;
|
sav.frames = frames;
|
||||||
sav.codepage = codepage;
|
sav.codepage = codepage;
|
||||||
sav.baseline = baseline;
|
sav.baseline1 = baseline1;
|
||||||
|
sav.baseline2 = baseline2;
|
||||||
|
sav.baseline3 = baseline3;
|
||||||
|
|
||||||
using (Stream ms = File.OpenWrite(filename)) {
|
using (Stream ms = File.OpenWrite(filename)) {
|
||||||
MessagePackSerializer.Serialize(ms, sav);
|
MessagePackSerializer.Serialize(ms, sav);
|
||||||
@@ -1187,7 +1231,7 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void btnBaseline_Click(object sender, EventArgs e) {
|
private void btnBaseline_Click(object sender, EventArgs e) {
|
||||||
set_base = !set_base;
|
cmBaseline.Show(btnBaseline, new Point(0, btnBaseline.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check modified / Save frame
|
// Check modified / Save frame
|
||||||
@@ -1403,8 +1447,7 @@ namespace McBitFont {
|
|||||||
lblSelection.Visible = lblSelectionLabel.Visible = chkRectSelect.Checked;
|
lblSelection.Visible = lblSelectionLabel.Visible = chkRectSelect.Checked;
|
||||||
selectAllToolStripMenuItem.Enabled = chkRectSelect.Checked;
|
selectAllToolStripMenuItem.Enabled = chkRectSelect.Checked;
|
||||||
|
|
||||||
if (chkRectSelect.Checked) dotPanel.Cursor = McCursor.GetCursorSelect();
|
SetPanelCursor();
|
||||||
else dotPanel.Cursor = McCursor.GetCursor((int)nudBrush.Value, cellSize, gap);
|
|
||||||
|
|
||||||
dotPanel.Refresh();
|
dotPanel.Refresh();
|
||||||
}
|
}
|
||||||
@@ -1534,7 +1577,7 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void TestFont_Click(object sender, EventArgs e) {
|
private void TestFont_Click(object sender, EventArgs e) {
|
||||||
var tester = new FontTester(codepage, dotHeight, baseline, frames);
|
var tester = new FontTester(codepage, dotHeight, baseline1, frames);
|
||||||
tester.ShowDialog();
|
tester.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1700,7 +1743,7 @@ namespace McBitFont {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void nudBrush_ValueChanged(object sender, EventArgs e) {
|
private void nudBrush_ValueChanged(object sender, EventArgs e) {
|
||||||
if (!chkRectSelect.Checked) dotPanel.Cursor = McCursor.GetCursor((int)nudBrush.Value, cellSize, gap);
|
SetPanelCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void frameScreenshotToolStripMenuItem_Click(object sender, EventArgs e) {
|
private void frameScreenshotToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||||
@@ -1720,9 +1763,9 @@ namespace McBitFont {
|
|||||||
private void MainForm_KeyDown(object sender, KeyEventArgs e) {
|
private void MainForm_KeyDown(object sender, KeyEventArgs e) {
|
||||||
if (CAKeyDown) return;
|
if (CAKeyDown) return;
|
||||||
if (chkRectSelect.Checked && e.Control && e.Alt) {
|
if (chkRectSelect.Checked && e.Control && e.Alt) {
|
||||||
//MessageBox.Show("Down: Alt!");
|
|
||||||
chkRectSelect.Checked = false;
|
chkRectSelect.Checked = false;
|
||||||
CAKeyDown = true;
|
CAKeyDown = true;
|
||||||
|
dotPanel.Invalidate();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1734,5 +1777,44 @@ namespace McBitFont {
|
|||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void btnBaseline_Paint(object sender, PaintEventArgs e) {
|
||||||
|
Button btn = (sender as Button);
|
||||||
|
int arrowX = btn.ClientRectangle.Width - btn.Padding.Right - 14;
|
||||||
|
int arrowY = btn.ClientRectangle.Height / 2 - 1;
|
||||||
|
|
||||||
|
Color color = btn.Enabled ? ForeColor : SystemColors.ControlDark;
|
||||||
|
using Brush brush = new SolidBrush(color);
|
||||||
|
using Pen pen = new Pen(color);
|
||||||
|
Point[] arrow = [new Point(arrowX, arrowY), new Point(arrowX + 7, arrowY), new Point(arrowX + 3, arrowY + 4)];
|
||||||
|
|
||||||
|
e.Graphics.FillPolygon(brush, arrow);
|
||||||
|
e.Graphics.DrawLine(pen, arrowX - 5, btn.ClientRectangle.Top + 4, arrowX - 5, btn.ClientRectangle.Bottom - 4);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void tsmiBaseline_Click(object sender, EventArgs e) {
|
||||||
|
if (set_lines == SetLines.SL_Base) set_lines = SetLines.SL_None;
|
||||||
|
else set_lines = SetLines.SL_Base;
|
||||||
|
SetPanelCursor();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void tsmiMidline_Click(object sender, EventArgs e) {
|
||||||
|
if (set_lines == SetLines.SL_Mid) set_lines = SetLines.SL_None;
|
||||||
|
else set_lines = SetLines.SL_Mid;
|
||||||
|
SetPanelCursor();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void tsmiTopline_Click(object sender, EventArgs e) {
|
||||||
|
if (set_lines == SetLines.SL_Top) set_lines = SetLines.SL_None;
|
||||||
|
else set_lines = SetLines.SL_Top;
|
||||||
|
SetPanelCursor();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetPanelCursor() {
|
||||||
|
if (mouseDownMiddle) dotPanel.Cursor = McCursor.GetCursorDrag();
|
||||||
|
else if (set_lines > SetLines.SL_None) dotPanel.Cursor = McCursor.GetCursorLines();
|
||||||
|
else if (chkRectSelect.Checked) dotPanel.Cursor = McCursor.GetCursorSelect();
|
||||||
|
else dotPanel.Cursor = McCursor.GetCursor((int)nudBrush.Value, cellSize, gap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -138,6 +138,9 @@
|
|||||||
<metadata name="dlgSavePNG.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="dlgSavePNG.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>644, 17</value>
|
<value>644, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="cmBaseline.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>763, 17</value>
|
||||||
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
|
@@ -20,9 +20,9 @@
|
|||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
|
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
|
||||||
<ApplicationIcon>icon_64.ico</ApplicationIcon>
|
<ApplicationIcon>icon_64.ico</ApplicationIcon>
|
||||||
<AssemblyVersion>2.8.0.0</AssemblyVersion>
|
<AssemblyVersion>2.9.0.0</AssemblyVersion>
|
||||||
<FileVersion>2.8.0.0</FileVersion>
|
<FileVersion>2.9.0.0</FileVersion>
|
||||||
<Version>$(VersionPrefix)2.8.0</Version>
|
<Version>$(VersionPrefix)2.9.0</Version>
|
||||||
<Copyright>Anton Mukhin</Copyright>
|
<Copyright>Anton Mukhin</Copyright>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
@@ -127,5 +127,46 @@ namespace McBitFont {
|
|||||||
return CreateCursorNoResize(bmp, 1, 1);
|
return CreateCursorNoResize(bmp, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Cursor GetCursorLines() {
|
||||||
|
Point[] arrow = { new(1, 1), new(12, 12), new(11, 13), new(6, 13), new(2, 17), new(1, 16) };
|
||||||
|
Rectangle line = new(0, 18, 20, 5);
|
||||||
|
|
||||||
|
Bitmap bmp = new(21, 24);
|
||||||
|
Pen pb = new(Color.Black, 1);
|
||||||
|
Pen pw = new(Color.White, 1);
|
||||||
|
SolidBrush bw = new(Color.White);
|
||||||
|
SolidBrush bb = new(Color.Black);
|
||||||
|
using (Graphics g = Graphics.FromImage(bmp)) {
|
||||||
|
g.FillPolygon(bw, arrow);
|
||||||
|
g.DrawPolygon(pb, arrow);
|
||||||
|
g.FillRectangle(bb, line);
|
||||||
|
g.DrawRectangle(pw, line);
|
||||||
|
}
|
||||||
|
|
||||||
|
return CreateCursorNoResize(bmp, 1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Cursor GetCursorDrag() {
|
||||||
|
Point[] arrow1 = { new(11, 0), new(15, 4), new(13, 4), new(13, 7), new(9, 7), new(9, 4), new(7, 4) };
|
||||||
|
Point[] arrow2 = { new(22, 11), new(18, 15), new(18, 13), new(15, 13), new(15, 9), new(18, 9), new(18, 7) };
|
||||||
|
Point[] arrow3 = { new(11, 22), new(7, 18), new(9, 18), new(9, 15), new(13, 15), new(13, 18), new(15, 18) };
|
||||||
|
Point[] arrow4 = { new(0, 11), new(4, 7), new(4, 9), new(7, 9), new(7, 13), new(4, 13), new(4, 15) };
|
||||||
|
|
||||||
|
Bitmap bmp = new(23, 23);
|
||||||
|
Pen pb = new(Color.Black, 1);
|
||||||
|
SolidBrush bw = new(Color.White);
|
||||||
|
using (Graphics g = Graphics.FromImage(bmp)) {
|
||||||
|
g.FillPolygon(bw, arrow1);
|
||||||
|
g.DrawPolygon(pb, arrow1);
|
||||||
|
g.FillPolygon(bw, arrow2);
|
||||||
|
g.DrawPolygon(pb, arrow2);
|
||||||
|
g.FillPolygon(bw, arrow3);
|
||||||
|
g.DrawPolygon(pb, arrow3);
|
||||||
|
g.FillPolygon(bw, arrow4);
|
||||||
|
g.DrawPolygon(pb, arrow4);
|
||||||
|
}
|
||||||
|
return CreateCursorNoResize(bmp, 11, 11);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
30
McBitFont/Properties/Resources.Designer.cs
generated
30
McBitFont/Properties/Resources.Designer.cs
generated
@@ -180,6 +180,26 @@ namespace McBitFont.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap fam_lines {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("fam_lines", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap fam_mid {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("fam_mid", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -190,6 +210,16 @@ namespace McBitFont.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap fam_top {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("fam_top", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -118,6 +118,9 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
|
<data name="fam_mid" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\fam_mid.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="z_left" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="z_left" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\arrow_left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\arrow_left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -130,6 +133,9 @@
|
|||||||
<data name="Famfamfam-Silk-Page-paste.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Famfamfam-Silk-Page-paste.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\Famfamfam-Silk-Page-paste.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Famfamfam-Silk-Page-paste.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="folder_table" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\folder_table.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="folder_open" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="folder_open" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\folder_open.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\folder_open.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -145,12 +151,12 @@
|
|||||||
<data name="font" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="font" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\font.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\font.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="picture_save" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\picture_save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="arrow_redo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="arrow_redo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\redo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\redo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Famfamfam-Silk-Disk.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>..\Resources\Famfamfam-Silk-Disk.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -169,9 +175,6 @@
|
|||||||
<data name="Canvas_Clear" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Canvas_Clear" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\Canvas_Clear.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Canvas_Clear.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="text_letterspacing2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>..\Resources\text_letterspacing2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="z_uo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="z_uo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\arrow_up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\arrow_up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -196,6 +199,9 @@
|
|||||||
<data name="icon_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="icon_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\icon_32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\icon_32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="fam_lines" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\fam_lines.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="z_tick" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="z_tick" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\tick.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\tick.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -211,17 +217,20 @@
|
|||||||
<data name="fam_rectt" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="fam_rectt" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\fam_rectt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\fam_rectt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Famfamfam-Silk-Page-white.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Famfamfam-Silk-Page-white.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
<data name="delete" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="delete" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\delete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\delete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="arrow_turn_right" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="arrow_turn_right" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\arrow_turn_right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\arrow_turn_right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Famfamfam-Silk-Page-white.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Famfamfam-Silk-Disk.16" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\Famfamfam-Silk-Page-white.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Famfamfam-Silk-Disk.16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="folder_table" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="text_letterspacing2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\folder_table.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\text_letterspacing2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Canvas_Fill" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Canvas_Fill" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\Canvas_Fill.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Canvas_Fill.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
@@ -244,7 +253,7 @@
|
|||||||
<data name="icon_64" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="icon_64" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\icon_64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\icon_64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="picture_save" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="fam_top" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\picture_save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\fam_top.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
BIN
McBitFont/Resources/fam_lines.png
Normal file
BIN
McBitFont/Resources/fam_lines.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 174 B |
BIN
McBitFont/Resources/fam_mid.png
Normal file
BIN
McBitFont/Resources/fam_mid.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 137 B |
BIN
McBitFont/Resources/fam_top.png
Normal file
BIN
McBitFont/Resources/fam_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 136 B |
5
TODO.txt
5
TODO.txt
@@ -1,11 +1,14 @@
|
|||||||
Application:
|
Application:
|
||||||
- Consider migrating to WPF in order to make DPI aware UI
|
- Consider migrating to WPF in order to make DPI aware UI
|
||||||
|
V Special cursor to indicate baseline set
|
||||||
|
V Special cursor when dragging canvas with middle mouse button
|
||||||
|
|
||||||
Functionality:
|
Functionality:
|
||||||
V Show note field in Export comments
|
V Show note field in Export comments
|
||||||
V When Rectangle selection tool is active hold Ctrl+Alt to temporary disable it to be able to draw
|
V When Rectangle selection tool is active hold Ctrl+Alt to temporary disable it to be able to draw
|
||||||
V Frame screenshot can be copied to clipboard with some limitations (no transparency)
|
V Frame screenshot can be copied to clipboard with some limitations (no transparency)
|
||||||
- Beside Baseline, also make top and mid lines
|
V Beside Baseline, also make top and mid lines
|
||||||
|
|
||||||
Bugs:
|
Bugs:
|
||||||
V Fixed "Frame modified" check. It leaves modified flag if user refused to save changes.
|
V Fixed "Frame modified" check. It leaves modified flag if user refused to save changes.
|
||||||
|
V Middle mouse button tries to change selection while dragging canvas with rectSelection tool active
|
BIN
examples/Cursors.mbfont
Normal file
BIN
examples/Cursors.mbfont
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
icons/famfamfam/fam_lines.png
Normal file
BIN
icons/famfamfam/fam_lines.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 174 B |
BIN
icons/famfamfam/fam_mid.png
Normal file
BIN
icons/famfamfam/fam_mid.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 137 B |
BIN
icons/famfamfam/fam_top.png
Normal file
BIN
icons/famfamfam/fam_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 136 B |
Reference in New Issue
Block a user